Exemple #1
0
        private void Resetbtn_Click(object sender, EventArgs e)
        {
            rec = 1;
            this.Close();
            TwoPlayersfrmDetails f1 = new TwoPlayersfrmDetails();

            f1.Show();
            FirstForm f2 = new FirstForm();

            f2.Close();
        }
Exemple #2
0
        private void TwoPlayersfrm_FormClosed(object sender, FormClosedEventArgs e)
        {
            FirstForm f1 = new FirstForm();

            if (rec == 1)
            {
                f1.Close();
            }
            else
            {
                f1.Show();
            }
        }