Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Please enter your name");
            }
            else
            {
                try
                {
                    Grade = "K";
                    User  = textBox1.Text;

                    Form1.username = textBox1.Text;
                    Form1.grade    = "K";

                    problem_select_test problem_select = new problem_select_test();
                    problem_select.Show();

                    this.Close();
                }
                catch (Exception exception)
                {
                    Console.WriteLine(exception);
                    throw;
                }
            }
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            problem_select_test test = new problem_select_test();

            test.Show();
            this.Close();
        }
Ejemplo n.º 3
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Please enter your name");
            }

            else
            {
                Grade = "5";
                User  = textBox1.Text;

                Form1.username = textBox1.Text;
                Form1.grade    = "5";

                problem_select_test problem_select = new problem_select_test();
                problem_select.Show();


                this.Close();
            }
        }