/// <summary> /// Method to end the game /// </summary> /// <param name="text"></param> private void EndGame(string text) { // Submit the score and get the index value for insertion into list int index = playerDataController.SubmitScore(); // Check if the index is less than zero, if not, update records if (index >= 0) { // Show form and get name from form InputDialog input = new InputDialog(playerDataController); input.ShowDialog(); // record player playerDataController.Record(index); } // Show High Scores frmHighScore highScore = new frmHighScore(); highScore.ShowDialog(); }
/// <summary> /// "Easter Egg" method to show high scores without having to play the game. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lblSplashTitle_Click(object sender, EventArgs e) { frmHighScore highScore = new frmHighScore(); highScore.ShowDialog(); }