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(); } }
private void btnHighScore_Click(object sender, EventArgs e) { Form f = new FormHighScore(); f.ShowDialog(); }