From aed16d7a99bcee05d5b56942d0a0be7e573dfe77 Mon Sep 17 00:00:00 2001 From: Jevil7452 <98893064+Jevil7452@users.noreply.github.com> Date: Mon, 1 May 2023 22:14:08 +0200 Subject: [PATCH] whoops ive forgot to make it 0 seconds (was 15 for testing) --- Form1.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Form1.cs b/Form1.cs index 5e5c330..08185e7 100644 --- a/Form1.cs +++ b/Form1.cs @@ -33,7 +33,7 @@ private void button1_Click(object sender, EventArgs e) { using (Process process = new Process()) { - var psi = new ProcessStartInfo("shutdown", "/s /t 15"); + var psi = new ProcessStartInfo("shutdown", "/s /t 0"); psi.CreateNoWindow = true; psi.UseShellExecute = false; Process.Start(psi); @@ -48,7 +48,7 @@ private void timer1_Tick(object sender, EventArgs e) if (seconds == 0) { timer1.Stop(); - var psi = new ProcessStartInfo("shutdown", "/s /t 15"); + var psi = new ProcessStartInfo("shutdown", "/s /t 0"); psi.CreateNoWindow = true; psi.UseShellExecute = false; Process.Start(psi);