示例#1
0
 private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     ModeController.UnregisterHotKey();
     ModeController.StopMonitorMode();
     CommandLine.CloseConsole();
 }
示例#2
0
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModeController.UnregisterHotKey();
     ModeController.StopMonitorMode();
     this.Close();
 }