Exemple #1
0
        private void buttonDownloadAll_Click(object sender, EventArgs e)
        {
            labelTotalUpdate.Visible      = false;
            labelDownloadStart.Text       = "Download Started, Please wait...";
            buttonDownloadAll.Visible     = false;
            buttonLimitedDownload.Visible = false;


            Application.DoEvents();

            questionQuantity = questionCounter;


            QuestionTextDownload();

            questionQuantity = questionCounter;


            QuestionImageDownload();

            questionQuantity = questionCounter;

            insertDataBase();
            Application.DoEvents();

            directoryDelete();
            MessageBox.Show("Download Completed!");
            Application.DoEvents();
            this.Hide();
            CrazyWorld cw = new CrazyWorld();

            cw.ShowDialog();
        }
Exemple #2
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            timerON.Stop();
            nullChecker();

            if ((textBoxUserName.Text.ToLower().Replace(" ", "") == "admin") && textBoxPassword.Text.ToLower().Replace(" ", "") == "kid13")
            {
                this.Hide();
                QuestionMaker qm = new QuestionMaker();
                qm.ShowDialog();
            }



            if (blankChecker == true)
            {
                makeLogin();


                if (passwordchecker == true)
                {
                    this.Hide();

                    UserInformation.setUserName(textBoxUserName.Text.ToString());

                    CrazyWorld cw = new CrazyWorld();
                    cw.ShowDialog();
                }
            }
        }
Exemple #3
0
        private void buttonBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            CrazyWorld cw = new CrazyWorld();

            cw.ShowDialog();
        }
Exemple #4
0
        private void infoFileDownloadComplete(object sender, AsyncCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                MessageBox.Show("Problem while Downloading!\nOr no internet connection..");


                this.Hide();
                CrazyWorld cw = new CrazyWorld();
                cw.ShowDialog();
            }
        }
Exemple #5
0
        private void buttonDownload_Click(object sender, EventArgs e)
        {
            labelTotalUpdate.Visible = false;
            labelDownloadStart.Text  = "Download Started, Please wait...";

            buttonDownload.Visible = false;
            buttonRefresh.Visible  = false;

            Application.DoEvents();

            if (comboBoxUpdateNumber.Text.ToString() != "")
            {
                questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());
            }
            else
            {
                questionQuantity = 0;
            }



            QuestionTextDownload();



            questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());

            QuestionImageDownload();

            questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());

            insertDataBase();

            Application.DoEvents();

            MessageBox.Show("Download Completed!");
            Application.DoEvents();
            directoryDelete();
            this.Hide();
            CrazyWorld cw = new CrazyWorld();

            cw.ShowDialog();
        }
 private void buttonSubmit_Click(object sender, EventArgs e)
 {
     this.Hide();
     CrazyWorld cw = new CrazyWorld();
     cw.ShowDialog();
 }
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            timerON.Stop();
            nullChecker();

            if ((textBoxUserName.Text.ToLower().Replace(" ","") == "admin") && textBoxPassword.Text.ToLower().Replace(" ","") == "kid13")
            {
                this.Hide();
                QuestionMaker qm = new QuestionMaker();
                qm.ShowDialog();
            }

            if (blankChecker == true)
            {
                makeLogin();

                if (passwordchecker == true)
                {

                    this.Hide();

                    UserInformation.setUserName(textBoxUserName.Text.ToString());

                    CrazyWorld cw = new CrazyWorld();
                    cw.ShowDialog();

                }

            }
        }
        private void textFileDownloadComplete(object sender, AsyncCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                MessageBox.Show("Problem while Downloading!\nOr no internet connection..");

                this.Hide();
                CrazyWorld cw = new CrazyWorld();
                cw.ShowDialog();

            }

            QuestionTextDownload();
        }
        private void buttonDownload_Click(object sender, EventArgs e)
        {
            labelTotalUpdate.Visible = false;
            labelDownloadStart.Text = "Download Started, Please wait...";

            buttonDownload.Visible = false;
            buttonRefresh.Visible = false;

            Application.DoEvents();

            if (comboBoxUpdateNumber.Text.ToString() != "")
                questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());
            else
                questionQuantity = 0;

            QuestionTextDownload();

            questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());

            QuestionImageDownload();

            questionQuantity = int.Parse(comboBoxUpdateNumber.Text.ToString());

            insertDataBase();

            Application.DoEvents();

            MessageBox.Show("Download Completed!");
            Application.DoEvents();
            directoryDelete();
            this.Hide();
            CrazyWorld cw = new CrazyWorld();
            cw.ShowDialog();
        }
        private void buttonDownloadAll_Click(object sender, EventArgs e)
        {
            labelTotalUpdate.Visible = false;
            labelDownloadStart.Text = "Download Started, Please wait...";
            buttonDownloadAll.Visible = false;
            buttonLimitedDownload.Visible = false;

            Application.DoEvents();

            questionQuantity = questionCounter;

            QuestionTextDownload();

            questionQuantity = questionCounter;

            QuestionImageDownload();

            questionQuantity = questionCounter;

            insertDataBase();
            Application.DoEvents();

            directoryDelete();
            MessageBox.Show("Download Completed!");
            Application.DoEvents();
            this.Hide();
            CrazyWorld cw = new CrazyWorld();
            cw.ShowDialog();
        }