Example #1
0
 void timer_Tick(object sender, EventArgs e)
 {
     Invalidate();
     game.Move();
     if (game.GameInProgress == false && game.TTL == 0 && game.CanClose == true)
     {
         FormHighScore fh = new FormHighScore();
         fh.ShowDialog();
         this.Close();
     }
 }
Example #2
0
 private void btnHighScore_Click(object sender, EventArgs e)
 {
     Form f = new FormHighScore();
     f.ShowDialog();
 }