Esempio n. 1
0
        private void nextButton_Click(object sender, EventArgs e)
        {
            for (int num = 0; num < catChoice.Length; num++)
            {
                catChoice[num].Tag = num;
            }

            RadioButton rb = sender as RadioButton;

            click = true;

            if (rb != null)
            {
                quesChoice = (int)rb.Tag;
                if (rb.Checked)
                {
                    PickOption(quesChoice);
                }
            }

            else if (rb == null)
            {
                PickOption(8);
            }
            click = true;
            this.Hide();
            QuestionForm test = new QuestionForm();

            test.Show();
        }
Esempio n. 2
0
        private void nextButton_Click(object sender, EventArgs e)
        {
            foreach (RadioButton rb in TopicGroupBox.Controls)
            {
                if (rb.Checked)
                {
                    Person.Topic = rb.Text;
                }
            }
            this.Hide();
            QuestionForm test = new QuestionForm(Person);

            test.Show();
        }