Пример #1
0
        private void btn_submit_click(object sender, EventArgs e)
        {
            StartQuiz sq = new StartQuiz();

            if (selectedrb.Text == "")
            {
                MessageBox.Show("Please Select a Result");
            }
            else if (selectedrb.Text == correct_answer)
            {
                switch (level)
                {
                case 1:
                    level++;
                    break;

                case 2:
                    level++;
                    break;

                case 3:
                    break;
                }

                sq.nextquestion(level);
            }
            else
            {
                MessageBox.Show("Incorrect");
                switch (level)
                {
                case 1:

                    break;

                case 2:
                    level--;
                    break;

                case 3:
                    level--;
                    break;
                }
                sq.nextquestion(level);
            }
        }
Пример #2
0
        private void Form_Load(object sender, EventArgs e)
        {
            StartQuiz sq = new StartQuiz();

            sq.start();
        }