Exemplo n.º 1
0
 private void btn_PlayAgain_Click(object sender, EventArgs e)
 {
     PlayAgain?.Invoke(sender, e);
 }
Exemplo n.º 2
0
 private void OnClick_Again()
 {
     PlayAgain?.Invoke();
 }
Exemplo n.º 3
0
 // click of the "Play Again" button that appears when the game is over
 private void PlayAgainButton_Click(object sender, EventArgs e)
 {
     soundClick.Play(); // play a "click" when the button is pressed
     PlayAgain?.Invoke(sender, e);
 }