예제 #1
0
        private void nextRoundButton_Click(object sender, RoutedEventArgs e)
        {
            Game1Form form = new Game1Form();
            Game1Form win  = (Game1Form)Window.GetWindow(this);

            win.Close();
            form.Show();
        }
예제 #2
0
 private void pandemicButton_Click(object sender, RoutedEventArgs e)
 {
     if (Game1Form.minority == 2)
     {
         Game1Form win  = (Game1Form)Window.GetWindow(this);
         Game1Form form = new Game1Form();
         win.Close();
         form.Show();
     }
     else
     {
         PandemicGame page = new PandemicGame();
         Game1Form    win  = (Game1Form)Window.GetWindow(this);
         win.Content = page;
     }
 }
예제 #3
0
        private void game1_Click_1(object sender, RoutedEventArgs e)
        {
            Game1Form game1Form = new Game1Form();

            game1Form.Show();
        }