private void StartForm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { this.Close(); } else if (e.KeyCode == Keys.Enter) { MainGameForm MainGameForm = new MainGameForm(); MainGameForm.ShowDialog(); } else if (e.KeyCode == Keys.OemQuestion) { ScoreBoardForm sb = new ScoreBoardForm(); sb.ShowDialog(); } }
private void GameStartButtonlabel_Click(object sender, EventArgs e) { MainGameForm MainGameForm = new MainGameForm(); MainGameForm.ShowDialog(); }