Example #1
0
 public void TerminateApp()
 {
     KeyListener.StopKeyListener();
     theApp.HaltAnimation();
     theApp.StopLGS();
     theApp.WindowClosing(); // closes settings window and other clean up
     Close();
     Application.Current.Shutdown();
 }
Example #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     KeyListener.StopKeyListener();
     theApp.HaltAnimation();
     theApp.StopLGS();
 }