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