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(); } }
private void Geometry_bn(object sender, RoutedEventArgs e) { Geometry = new Geometry(); Cate.Hide(); Geometry.Show(); }
private void Arithmetic_bn(object sender, RoutedEventArgs e) { arith = new Arithmetic(); Cate.Hide(); arith.Show(); }