Пример #1
0
 private void Form1_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         GameSound.controls.stop();
         this.Controls.Clear();
         PopButton.Stop();
         PausetheGame();
         if (hello != null)
         {
             hello.Enabled = false;
         }
     }
 }
Пример #2
0
 public void isGameOver()
 {
     PopButton.Stop();
     if (gameover == false)
     {
         gameover = true;
         PopButton.Start();
     }
     else
     {
         var x = ShowPoint();
         GameSound.controls.stop();
         close = new Form2(clickcount, this, formclickcount);
         close.Show();
     }
 }