Example #1
0
        private void MainWindow_Closed(object sender, EventArgs e)
        {
            // End global keyhook
            Win32Interop.DestroyKeyhook();

            // Close terminal window
            _terminalWindow.Close();

            Environment.Exit(0);
        }
 private void OnExit(object sender, EventArgs e)
 {
     Win32Interop.DestroyKeyhook();
     terminalWindow.Close();
     Environment.Exit(0);
 }