private void Shutdown_Click(object sender, EventArgs e) { Shutdown shutdown = new Shutdown("-s -f -t 00"); shutdown.Execute(); }
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(); } }
private void Restart_Click(object sender, EventArgs e) { Shutdown restart = new Shutdown("-r -f -t 00"); restart.Execute(); }