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