private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { ModeController.UnregisterHotKey(); ModeController.StopMonitorMode(); CommandLine.CloseConsole(); }
private void exitToolStripMenuItem_Click(object sender, EventArgs e) { ModeController.UnregisterHotKey(); ModeController.StopMonitorMode(); this.Close(); }