Example #1
0
 private void btn_PlayAgain_Click(object sender, EventArgs e)
 {
     PlayAgain?.Invoke(sender, e);
 }
 private void OnClick_Again()
 {
     PlayAgain?.Invoke();
 }
Example #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);
 }