Exemplo n.º 1
0
 public ChoiceResponse(Response response, ResponseGroup parent, ChoiceQuestion question)
 {
     this.Response = response;
     this.Parent   = parent;
     this.Question = question;
     this.choices  = CreateEmptyChoices(response);
 }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
0
 public QuestionChoice(ChoiceQuestion parent, QuestionChoice original)
 {
     this.ParentQuestion = parent;
     if (null != this.FurtherQuestion)
     {
         this.FurtherQuestion = original.FurtherQuestion.Clone(this);
     }
     this.FurtherQuestionStartsOnTheNextRow = original.FurtherQuestionStartsOnTheNextRow;
     this.Rubric          = original.Rubric.Clone();
     this.RubricIsVisible = original.RubricIsVisible;
     this.Score           = original.Score;
     this.SeqNo           = original.SeqNo;
 }
Exemplo n.º 4
0
 public RubricCommonChoice(ChoiceQuestion parent, RubricCommonChoice original)
     : base(parent, original)
 {
     // TODO: Complete member initialization
     this.commonChoice = original.commonChoice;
 }
Exemplo n.º 5
0
 public override QuestionChoice Clone(ChoiceQuestion parent)
 {
     return(new RubricCommonChoice(parent, this));
 }
Exemplo n.º 6
0
 public abstract QuestionChoice Clone(ChoiceQuestion parent);
Exemplo n.º 7
0
 public override QuestionChoice Clone(ChoiceQuestion parent)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public override QuestionChoice Clone(ChoiceQuestion parent)
 {
     return(new CustomChoice((CustomChoiceQuestion)parent, this));
 }