Beispiel #1
0
 private void ButtonPlayClicked(object sender, System.EventArgs e)
 {
     if (this.IsUserInputValid())
     {
         this.Hide();
         var multyPlayer =
             new MultiPlayerGameBoardView(
                 new HumanPlayer(this.FirstPlayerName, this.FirstPlayerSymbol),
                 new HumanPlayer(this.SecondPlayerName, this.SecondPlayerSymbol));
         multyPlayer.ShowDialog();
         this.Close();
     }
 }
 private void ButtonPlayClicked(object sender, System.EventArgs e)
 {
     if (this.IsUserInputValid())
     {
         this.Hide();
         var multyPlayer =
             new MultiPlayerGameBoardView(
                 new HumanPlayer(this.FirstPlayerName, this.FirstPlayerSymbol),
                 new HumanPlayer(this.SecondPlayerName, this.SecondPlayerSymbol));
         multyPlayer.ShowDialog();
         this.Close();
     }
 }