コード例 #1
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();
                }
            }
        }
コード例 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Hide();
     QuestionMaker q2 = new QuestionMaker();
     q2.ShowDialog();
 }
コード例 #3
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();

                }

            }
        }