private void StartTwoPlayerBTN_Click(object sender, RoutedEventArgs e) { if ((string.IsNullOrEmpty(PlayerOneInput.Text)) || (string.IsNullOrEmpty(PlayerTwoInput.Text))) { MessageBox.Show("U bent vergeten alle namen in te vullen!"); } else { TwoPlayerGame TwoPlayerGame = new TwoPlayerGame(PlayerOneInput.Text, PlayerTwoInput.Text); this.NavigationService.Navigate(TwoPlayerGame); } }
public MemoryGrid(Grid grid, int cols, int rows, Highscore hs, bool OnePlayerGameBool, TwoPlayerGame tpg) { this.tpg = tpg; this.initClass(grid, cols, rows, hs, OnePlayerGameBool); }