public virtual bool AddChild(QuestionBase child) { if (this.Questions.Contains(child)) { return(false); } this.Questions.Add(child); child.Parent = this; return(true); }
public QuestionBase(IQuestionParent parent, QuestionBase original) { if (null == original) { throw new iSabayaException("Original instance is null."); } this.Parent = parent; this.ItemNo = original.ItemNo; this.LevelNo = original.LevelNo; this.MemberLayout = original.MemberLayout.Clone(); this.PageBreak = original.PageBreak; this.Rubric = original.Rubric.Clone(); this.RubricIsVisible = original.RubricIsVisible; this.RubricStyle = original.RubricStyle.Clone(); this.Title = original.Title.Clone(); this.TitleIsVisible = original.TitleIsVisible; this.TitleStyle = original.TitleStyle.Clone(); }
public QuestionChoice(double score, MultilingualString rubric, QuestionBase furtherQuestion) : this(score) { this.FurtherQuestion = furtherQuestion; this.Rubric = rubric; }
public virtual void RemoveChild(QuestionBase child) { this.Questions.Remove(child); child.Parent = null; }
public CustomChoice(MultilingualString title, double score, MultilingualString rubric, QuestionBase furtherQuestion) : base(score, rubric, furtherQuestion) { this.Title = title; }