コード例 #1
0
        private void btnPlayAgain_Click(object sender, EventArgs e)
        {
            //Name: Sathurshan Arulmohan
            //Date: July 5, 2020
            //Title: btnPlayAgain_Click
            //Purpose: Allows the player to play again

            FoodFight Game = new FoodFight();

            this.Hide();
            Game.Show();
        }
コード例 #2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            //Name: Sathurshan Arulmohan
            //Date: July 3, 2020
            //Title: btnStart_Click
            //Purpose: starts the game

            //Sends the username to WinResults form so that the username can be saved with their score at the end of the game
            WinResults.strUserName = this.txtUserName.Text;

            //Brings to the game form
            FoodFight Game = new FoodFight();

            this.Hide();
            Game.Show();
        }