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