Ejemplo n.º 1
0
        public QuizBlock Create(Quiz quiz)
        {
            QuizBlock quizBlock = new QuizBlock();

            quizBlock.QuestionBlock = QuizFactory.Instance.CreateQuestionBlock  (quiz);
            quizBlock.AnswerBlock   = QuizFactory.Instance.CreateAnswerBlock    (quiz);
            quizBlock.TipBlock      = QuizFactory.Instance.CreateTipBlock       (quiz);

            foreach (long tmp in quiz.Answers)
            {
                Answer tmpAnswer = DataManager.Instance.GetAnswer(tmp);
                quizBlock
                    .AnswerBlock
                    .AnswerListWidget
                    .Add(QuizFactory.Instance.CreateAnswerWidget(tmpAnswer));
            }

            return quizBlock;
        }
Ejemplo n.º 2
0
 public QuizScreen()
 {
     QuizBlock = new QuizBlock();
 }