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