Esempio n. 1
0
        private void TestView_LoadQuestionEvent(object arg1, EventArgs arg2)
        {
            Question   question   = model.LoadedTest.Questions[testView.CurrentQuestion - 1];
            UserAnswer userAnswer = model.UserAnswers[testView.CurrentQuestion - 1];

            testView.loadQuestion(question, userAnswer);
        }
Esempio n. 2
0
 public void loadQuestion(Question question, UserAnswer userAnswer)
 {
     questionTextF.Text = question.Content;
     answer1Control.setAnswer(question.Answers[0], userAnswer.Answers[0]);
     answer2Control.setAnswer(question.Answers[1], userAnswer.Answers[1]);
     answer3Control.setAnswer(question.Answers[2], userAnswer.Answers[2]);
     answer4Control.setAnswer(question.Answers[3], userAnswer.Answers[3]);
 }