Beispiel #1
0
 public void OnGameOver(object sender, GameOverEventArgs e)
 {
     MessageBox.Show("Player two won: " + e.PlayerTwoWon);
 }
Beispiel #2
0
 private void NotifyGameOver(bool playerTwoWon)
 {
     GameOverEventArgs e = new GameOverEventArgs(playerTwoWon);
     GameOver(this, e);
 }