private void form_reboot_FormClosed(object sender, FormClosedEventArgs e) { SystemHotKey.UnRegHotKey(Handle, 100); SystemHotKey.UnRegHotKey(Handle, 101); // 关闭浏览器窗口 ControlProcess.CloseProcess(); }
private void Form_Exit() { // 关闭浏览器窗口 IsRunning = false; ControlProcess.CloseProcess(); // 关闭当前窗体 nti_reboot.Visible = false; this.Close(); this.Dispose(); Application.Exit(); }