private void yesButton_Click(object sender, RoutedEventArgs e) { TransferToPersonalBankAfterPandemicGame form = new TransferToPersonalBankAfterPandemicGame(); Game1Form win = (Game1Form)Window.GetWindow(this); win.Content = form; }
private void endGameButton_Click(object sender, RoutedEventArgs e) { PandemicGameVictoryPointsAfterFinish form = new PandemicGameVictoryPointsAfterFinish(); Game1Form win = (Game1Form)Window.GetWindow(this); win.Content = form; }
private void nextRoundButton_Click(object sender, RoutedEventArgs e) { Game1Form form = new Game1Form(); Game1Form win = (Game1Form)Window.GetWindow(this); win.Close(); form.Show(); }
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; }
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; } }
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; }
private void game1_Click_1(object sender, RoutedEventArgs e) { Game1Form game1Form = new Game1Form(); game1Form.Show(); }