Beispiel #1
0
 private void showSimpleQuestion()
 {
     AnswersgroupBox.Hide();
     q = Question[i_Simple];
     labelQues.Text = q.QuestionText;
     i_Simple++;
 }
Beispiel #2
0
        private void buttonNext_Click(object sender, EventArgs e)
        {
            CheckAns();
            if (err == 1)
            {
                error.Text = "עליך להקיש ספרות";
                AnswersgroupBox.Hide();
                q = Question[i_Simple - 1];
                labelQues.Text = q.QuestionText;
                err            = 0;
                return;
            }
            error.Text = "";
            if (AmericanQuestion.Count() > i_American)
            {
                textBoxAnsw.Hide();
                showAmericanQuestion();
            }
            else
            {
                textBoxAnsw.Show();
                textBoxAnsw.Text = "";

                if (Question.Count() > i_Simple)
                {
                    showSimpleQuestion();
                }
                else
                {
                    BL.EndTest(points);
                    End end = new End();
                    this.Hide();
                    end.Show();
                }
                return;
            }
        }