Example #1
0
        private void btnAgain_Click(object sender, EventArgs e)
        {
            GRearangeTheWords newgame = new GRearangeTheWords();

            newgame.AutoScroll = true;
            newgame.TopLevel   = false;
            pnlLoad.Controls.Clear();
            pnlLoad.Controls.Add(newgame);

            newgame.FormBorderStyle = FormBorderStyle.None;
            newgame.Show();
            pnlLoad.Dock    = DockStyle.Fill;
            pnlLoad.Visible = true;
            btnExit.Visible = btnAgain.Visible = false;
        }
Example #2
0
        //Game chon tu giong nhau
        private void guna2Button1_Click(object sender, EventArgs e)
        {
            if (Data.CheckForInternetConnection())
            {
                GRearangeTheWords game = new GRearangeTheWords();
                game.AutoScroll = true;
                game.TopLevel   = false;
                pnlLoad.Controls.Clear();
                pnlLoad.Controls.Add(game);

                game.FormBorderStyle = FormBorderStyle.None;
                game.Show();
                pnlLoad.Visible = true;
            }
            else
            {
                FError f = new FError("Turn on your Internet connection!", "Error");
                f.Show();
            }
        }