Example #1
0
 public virtual bool AddChild(QuestionBase child)
 {
     if (this.Questions.Contains(child))
     {
         return(false);
     }
     this.Questions.Add(child);
     child.Parent = this;
     return(true);
 }
Example #2
0
        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();
        }
Example #3
0
 public QuestionChoice(double score, MultilingualString rubric, QuestionBase furtherQuestion)
     : this(score)
 {
     this.FurtherQuestion = furtherQuestion;
     this.Rubric          = rubric;
 }
Example #4
0
 public virtual void RemoveChild(QuestionBase child)
 {
     this.Questions.Remove(child);
     child.Parent = null;
 }
Example #5
0
 public CustomChoice(MultilingualString title, double score, MultilingualString rubric, QuestionBase furtherQuestion)
     : base(score, rubric, furtherQuestion)
 {
     this.Title = title;
 }