private void button_nextRound_Click(object sender, EventArgs e)
        {
            GlobalData.numRound_FourLink = GlobalData.numRound_FourLink + 1;

            this.Close();

            if (GlobalData.NumGame == 1)
            {
                FourLinkForm link = new FourLinkForm();
                link.Visible = true;
            }
            else if (GlobalData.NumGame == 2)
            {
                FourLinkForm2 link2 = new FourLinkForm2();
                link2.Visible = true;
            }
        }
Exemple #2
0
        private void buttonPlay_Click(object sender, EventArgs e)
        {
            GlobalData.IsUserLoggedIn = true;
            LoginMsg = "User Successfully logged into the game";


            // FourLinkForm jumps in
            this.Visible = false;
            //FourLinkForm Link = new FourLinkForm();
            FourLinkForm Link = new FourLinkForm();

            if (Link.ShowDialog() == DialogResult.OK)
            {
                if (this.Visible == false && GlobalData.IsUserLoggedIn)
                {
                    this.Visible = true;
                }
                LoginMsg = "User Successfully logged in";
            }
        }
Exemple #3
0
        private void buttonPlay_Click(object sender, EventArgs e)
        {
            GlobalData.IsUserLoggedIn = true;
            LoginMsg = "User Successfully logged into the game";

            // FourLinkForm jumps in
            this.Visible = false;
            //FourLinkForm Link = new FourLinkForm();
            FourLinkForm Link = new FourLinkForm();
            if (Link.ShowDialog() == DialogResult.OK)
            {
                if (this.Visible == false && GlobalData.IsUserLoggedIn)
                {
                    this.Visible = true;
                }
                LoginMsg = "User Successfully logged in";
            }
        }