示例#1
0
        private void BtnPlayAgain_Click(object sender, EventArgs e)
        {
            //Name: Sathurshan Arulmohan
            //Date: June 18, 2020
            //Title: btnPlayAgain_Click
            //Purpose: To bring back GamePong form so that the user can play again

            Form_Pong Play = new Form_Pong();

            this.Hide();
            Play.Show();
        }
示例#2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            //Name: Sathurshan Arulmohan
            //Date: June 18, 2020
            //Title: btnStart_Click
            //Purpose: To bring up the GamePong Form

            Form_Pong Play = new Form_Pong();

            this.Hide();
            Play.Show();

            //Sends the username to to WinResults Form
            WinResults.strUserName = this.txtUserName.Text;
        }