Beispiel #1
0
 private void Shutdown_Click(object sender, EventArgs e)
 {
     Shutdown shutdown = new Shutdown("-s -f -t 00");
     shutdown.Execute();
 }
Beispiel #2
0
 private void tmrTime_Tick(object sender, EventArgs e)
 {
     Shutdown shutdown = new Shutdown();
     TimeCounter();
     if (h == 0 && m == 0 && s == 0)
     {
         shutdown.Parameter = SetParameter();
         shutdown.Execute();
     }
 }
Beispiel #3
0
 private void Restart_Click(object sender, EventArgs e)
 {
     Shutdown restart = new Shutdown("-r -f -t 00");
     restart.Execute();
 }