Exemple #1
0
 public Question(string Name, IQuestionInfo QuestionInfo, IQuestionAnswer QuestionAnswer, string Section = null)
 {
     this.QuestionInfo   = QuestionInfo;
     this.QuestionAnswer = QuestionAnswer;
     this.Name           = Name;
     this.Section        = Section;
 }
Exemple #2
0
 static public IInfoEditControl GetInfoEditableControl(IQuestionInfo info)
 {
     if (info is SimpleQuestionInfo)
     {
         return(new SimpleInfoEditControl(info as SimpleQuestionInfo));
     }
     throw new ArgumentException("Для данного типа info не найден соответствующий элемент управления");
 }