예제 #1
0
        //save and show updated highscore list
        private void btnSaveScore_Click(object sender, EventArgs e)
        {
            highScore.CalculateScoreAndStore(game.Moves, seconds, txtEnterName.Text);
            PopulateHighScoreList();

            //hiding controls after entering highscore name
            txtEnterName.Text    = "";
            lblenterName.Visible = false;
            txtEnterName.Visible = false;
            btnSaveScore.Visible = false;
        }