Ejemplo n.º 1
0
        private void yesButton_Click(object sender, RoutedEventArgs e)
        {
            TransferToPersonalBankAfterPandemicGame form = new TransferToPersonalBankAfterPandemicGame();
            Game1Form win = (Game1Form)Window.GetWindow(this);

            win.Content = form;
        }
Ejemplo n.º 2
0
        private void endGameButton_Click(object sender, RoutedEventArgs e)
        {
            PandemicGameVictoryPointsAfterFinish form = new PandemicGameVictoryPointsAfterFinish();
            Game1Form win = (Game1Form)Window.GetWindow(this);

            win.Content = form;
        }
Ejemplo n.º 3
0
        private void nextRoundButton_Click(object sender, RoutedEventArgs e)
        {
            Game1Form form = new Game1Form();
            Game1Form win  = (Game1Form)Window.GetWindow(this);

            win.Close();
            form.Show();
        }
Ejemplo n.º 4
0
        private void resultButton_Click(object sender, RoutedEventArgs e)
        {
            MinorityTally page = new MinorityTally();
            Game1Form     win  = (Game1Form)Window.GetWindow(this);

            page.yesCount.Content = win.numYes;
            page.noCount.Content  = win.numNo;
            win.Content           = page;
        }
Ejemplo n.º 5
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;
     }
 }
Ejemplo n.º 6
0
        private void nextRoundButton_Click(object sender, RoutedEventArgs e)
        {
            for (int i = 0; i < GameIO.numPlayers; i++)
            {
                Game1 temp = (Game1)allPlayersAsGame1[i];
                if ((temp.vaccines >= 3 && temp.isInfected == false) || (temp.vaccines >= 4 && temp.isInfected == true))
                {
                    temp.victoryPoints++;
                    gotVictoryPoint[i] = true;
                }
            }
            GameIO.save(allPlayersAsGame1, 1);
            PandemicGameVictoryPointsAfterRepeat form = new PandemicGameVictoryPointsAfterRepeat();
            Game1Form win = (Game1Form)Window.GetWindow(this);

            win.Content = form;
        }
Ejemplo n.º 7
0
        private void game1_Click_1(object sender, RoutedEventArgs e)
        {
            Game1Form game1Form = new Game1Form();

            game1Form.Show();
        }