protected void QuizButton() { // do podmiany qLogic = new QuizLogicMock(); List <IQuizEntity> quizWords = qLogic.GetQuizEntities("", ""); foreach (IQuizEntity word in quizWords) { Label l1 = ControlManager.CreateControl <Label>(100, 20, 20, 100, word.Word); Controls.Add(l1); int i = 1; foreach (KeyValuePair <string, IQuizAnswer> answer in word.Answers) { Button b1 = ControlManager.CreateControl <Button>(100, 20, (20 + (100 * i++)), 100, answer.Value.Word); Controls.Add(b1); } } }
public QuizController(IQuizLogic IBLogic) { this.IBLogic = IBLogic; }