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