コード例 #1
0
        private void BntRestart_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmWelcome novo = new frmWelcome();

            novo.Show();
        }
コード例 #2
0
 private void Button2_Click(object sender, EventArgs e)
 {
     {
         this.Hide();
         frmWelcome new2 = new frmWelcome();
         new2.Show();
     }
 }
コード例 #3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            //RESTART GAME
            // reset all the values and goes to the Welcome page (frmWelcome)
            scoreDraw  = 0;
            scoreHuman = '0';
            //txtScoreDraw.Text = "0";
            txtScoreComputer.Text = "0";
            lblDraw.Visible       = false;
            lblLose.Visible       = false;
            lblWin.Visible        = false;

            //Close this form and open frmWelcome
            this.Hide();
            frmWelcome novo = new frmWelcome();

            novo.Show();
        }