Exemple #1
0
        public MainForm()
        {
            InitializeComponent();

            numericUpDown1.Minimum = 1;

            QuestionRoot lastQuestion = new QuestionRoot();
            for (int i=1; i<500; i++) {
                lastQuestion = QuestionCreator.Create(i);
                if (lastQuestion.GetType().Name != "QuestionRoot") {
                    numericUpDown1.Value = i;
                }
            }
        }
Exemple #2
0
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     question = QuestionCreator.Create((int)numericUpDown1.Value);
     tbQuestion.Text = question.GetQuestion();
 }