Exemple #1
0
        private void btnYes_Click(object sender, EventArgs e)
        {
            G_RPG tabLearnNewWord = new G_RPG();

            tabLearnNewWord.AutoScroll = true;
            tabLearnNewWord.TopLevel   = false;
            pnlLoad.Controls.Clear();
            pnlLoad.Controls.Add(tabLearnNewWord);
            pnlLoad.Dock = DockStyle.Fill;
            tabLearnNewWord.FormBorderStyle = FormBorderStyle.None;
            tabLearnNewWord.Show();
            pnlLoad.Visible = true;
        }
 private void btnCategory_Click(object sender, EventArgs e)
 {
     if (Data.CheckForInternetConnection())
     {
         G_RPG game = new G_RPG();
         game.AutoScroll = true;
         game.TopLevel   = false;
         pnlLoad.Controls.Clear();
         pnlLoad.Controls.Add(game);
         pnlLoad.Dock         = DockStyle.Fill;
         game.FormBorderStyle = FormBorderStyle.None;
         game.Show();
         pnlLoad.Visible     = true;
         this.label1.Visible = false;
     }
     else
     {
         FError f = new FError("Turn on your Internet connection!", "Error");
         f.Show();
     }
 }