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