Пример #1
0
 public TextValueQuestion(IQuestionParent parent, TextValueQuestion original)
     : base(parent, original)
 {
     this.DefaultValue = original.DefaultValue;
     this.LowerBound   = original.LowerBound;
     this.UpperBound   = original.UpperBound;
 }
Пример #2
0
 public DateValueQuestion(IQuestionParent parent, DateValueQuestion original)
     : base(parent, original)
 {
     base.DefaultValue = original.DefaultValue;
     base.LowerBound   = original.LowerBound;
     base.UpperBound   = original.UpperBound;
 }
Пример #3
0
        public QuestionGroup(IQuestionParent parent, QuestionGroup original)
            : base(parent, original)
        {
            List <QuestionBase> children = new List <QuestionBase>();

            foreach (QuestionBase c in original.Children)
            {
                children.Add(c.Clone(this));
            }
        }
Пример #4
0
        public CustomChoiceQuestion(IQuestionParent parent, CustomChoiceQuestion original)
            : base(parent, original)
        {
            IList <CustomChoice> choices = new List <CustomChoice>();

            foreach (CustomChoice c in original.Choices)
            {
                choices.Add(c.Clone(this));
            }
            base.choices = choices;
        }
Пример #5
0
        public CommonChoiceQuestion(IQuestionParent parent, CommonChoiceQuestion original)
            : base(parent, original)
        {
            IList <RubricCommonChoice> choices = new List <RubricCommonChoice>();

            foreach (RubricCommonChoice c in original.choices)
            {
                choices.Add(new RubricCommonChoice(this, c));
            }
            base.choices = choices;
        }
Пример #6
0
        public ChoiceQuestion(IQuestionParent parent, ChoiceQuestion original)
            : base(parent, original)
        {
            this.AllowMultipleSelections = original.AllowMultipleSelections;
            IList <QuestionChoice> choices = new List <QuestionChoice>();

            foreach (QuestionChoice c in original.choices)
            {
                choices.Add(c.Clone(this));
            }
            this.choices = choices;
        }
Пример #7
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();
        }
Пример #8
0
 public QuestionItem(IQuestionParent parent, QuestionItem original)
     : base(parent, original)
 {
     this.ResponseIsRequired = original.ResponseIsRequired;
 }
Пример #9
0
 public Comment(IQuestionParent parent, Comment original)
     : base(parent, original)
 {
 }
Пример #10
0
 public RealValueQuestion(IQuestionParent parent, RealValueQuestion original)
     : base(parent, original)
 {
 }
Пример #11
0
 public LikertItemList(IQuestionParent parent, LikertItemList original)
     : base(parent, original)
 {
     this.ChoiceTitleAsColumnHeader = original.ChoiceTitleAsColumnHeader;
     this.RatingScale = original.RatingScale;
 }
Пример #12
0
 public ValueQuestion(IQuestionParent parent, ValueQuestion <T> original)
     : base(parent, original)
 {
     this.Suffix = original.Suffix.Clone();
 }
Пример #13
0
 public DiverseQuestionGroup(IQuestionParent parent, DiverseQuestionGroup original)
     : base(parent, original)
 {
 }