コード例 #1
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.X || e.Key == Key.Escape)
            {
                mw = new MainWindow();
                this.Close();
                mw.Show();

            }
        }
コード例 #2
0
 private void MenuItem_Click_5(object sender, RoutedEventArgs e)
 {
     mw = new MainWindow();
     this.Close();
     mw.Show();
 }