Beispiel #1
0
        private void Exit_bn(object sender, RoutedEventArgs e)
        {
            var result = MessageBox.Show(@"Do you want to return to the Main Menu?", "Close Game", MessageBoxButton.YesNo);

            if (result == MessageBoxResult.Yes)
            {
                myMain = new MainWindow();
                Cate.Hide();
                myMain.Show();
            }
        }
Beispiel #2
0
 private void Geometry_bn(object sender, RoutedEventArgs e)
 {
     Geometry = new Geometry();
     Cate.Hide();
     Geometry.Show();
 }
Beispiel #3
0
 private void Arithmetic_bn(object sender, RoutedEventArgs e)
 {
     arith = new Arithmetic();
     Cate.Hide();
     arith.Show();
 }