Esempio n. 1
0
        //End the game
        private void endGame()
        {
            //Disable timer
            tmrFall.Enabled = false;

            //Create a new instance of the form 'frmMenu'
            frmHighScore frmHighScore = new frmHighScore();

            //Hide the current form
            this.Hide();

            //Transfer the score to the high scores form
            frmHighScore.iScore = iScore;

            //Show the newly created form
            frmHighScore.ShowDialog(this);

            //Close the current form
            this.Close();
        }
        //End the game
        private void endGame()
        {
            //Disable timer
            tmrFall.Enabled = false;

            //Create a new instance of the form 'frmMenu'
            frmHighScore frmHighScore = new frmHighScore();

            //Hide the current form
            this.Hide();

            //Transfer the score to the high scores form
            frmHighScore.iScore = iScore;

            //Show the newly created form
            frmHighScore.ShowDialog(this);

            //Close the current form
            this.Close();
        }