private void Window_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.X || e.Key == Key.Escape) { mw = new MainWindow(); this.Close(); mw.Show(); } }
private void MenuItem_Click_5(object sender, RoutedEventArgs e) { mw = new MainWindow(); this.Close(); mw.Show(); }