Ejemplo n.º 1
0
        private void btnLNW_Click(object sender, EventArgs e)
        {
            FPreviewNewWord f = new FPreviewNewWord();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Ejemplo n.º 2
0
        private void btnDone_Click(object sender, EventArgs e)
        {
            if (Data.CheckForInternetConnection())
            {
                FPreviewNewWord tabLearnNewWord = new FPreviewNewWord();
                tabLearnNewWord.AutoScroll = true;
                tabLearnNewWord.TopLevel   = false;
                root.Controls.Clear();
                root.Controls.Add(tabLearnNewWord);

                tabLearnNewWord.FormBorderStyle = FormBorderStyle.None;
                tabLearnNewWord.Show();
                root.Visible = true;
            }
            else
            {
                FError f = new FError("Turn on your Internet connection!", "Error");
                f.Show();
            }
        }
        private void btnMultipleChoices_Click(object sender, EventArgs e)
        {
            if (Data.CheckForInternetConnection())
            {
                FPreviewNewWord tabPreviewNewWord = new FPreviewNewWord();
                tabPreviewNewWord.AutoScroll = true;
                tabPreviewNewWord.TopLevel   = false;
                pnlLoad.Controls.Clear();
                pnlLoad.Controls.Add(tabPreviewNewWord);

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

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