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; }
public QuizScreen() { QuizBlock = new QuizBlock(); }