private void btnReboot_Click(object sender, EventArgs e) { log.InfoFormat("{0} : Reboot PC", Program.UserName); PcControl crtl = new PcControl(); crtl.Reboot(); Application.Exit(); }