Exemple #1
0
        private void LoadCurrQuestion()
        {
            var currQuestion = exam.Questions[CurrQuestionIndex] as IQuestion;

            if (currQuestion is MultipleChoiceTextQuestion)
            {
                QuestionBuilder.PopulateAnswers((currQuestion as MultipleChoiceTextQuestion).Answers);
                QuestionBuilder.QuestionTypeMultiple = true;
            }
            else
            {
                QuestionBuilder.QuestionTypeOpen = true;
            }

            QuestionBuilder.Description   = currQuestion.QuestionDescription;
            QuestionBuilder.QuestionText  = currQuestion.QuestionText;
            QuestionBuilder.RightAnswer   = currQuestion.RightAnswer;
            QuestionBuilder.QuestionImage = currQuestion.QuestionImage;
        }