public EmptyResponse(Response response, ResponseGroup parent, Comment question)
 {
     // TODO: Complete member initialization
     this.Response = response;
     this.Parent   = parent;
     this.Question = question;
 }
Exemple #2
0
 public RealValueResponse(Response response, ResponseGroup parent, RealValueQuestion realValueQuestion, double responseValue)
 {
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = realValueQuestion;
     this.ResponseValue = responseValue;
 }
Exemple #3
0
 public IntegerValueResponse(Response response, ResponseGroup parent, IntegerValueQuestion question, int responseValue)
 {
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = question;
     this.ResponseValue = responseValue;
 }
 public DateValueResponse(Response response, ResponseGroup parent, DateValueQuestion question, DateTime responseValue)
 {
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = question;
     this.ResponseValue = responseValue;
 }
 public MoneyValueResponse(Response response, ResponseGroup parent, MoneyValueQuestion question, Money responseValue)
 {
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = question;
     this.ResponseValue = responseValue;
 }
 public ChoiceResponse(Response response, ResponseGroup parent, ChoiceQuestion question)
 {
     this.Response = response;
     this.Parent   = parent;
     this.Question = question;
     this.choices  = CreateEmptyChoices(response);
 }
Exemple #7
0
 public TextValueResponse(Response response, ResponseGroup parent, TextValueQuestion question, string responseValue)
 {
     // TODO: Complete member initialization
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = question;
     this.ResponseValue = responseValue;
 }
Exemple #8
0
        public override ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent)
        {
            ResponseGroup g = new ResponseGroup(response, parent, this);

            foreach (QuestionBase r in this.Children)
            {
                g.Children.Add(r.CreateEmptyResponse(response, g));
            }
            return(g);
        }
Exemple #9
0
 public override ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent)
 {
     return(new EmptyResponse(response, parent, this));
 }
Exemple #10
0
        public override ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent)
        {
            RealValueResponse r = new RealValueResponse(response, parent, this, base.DefaultValue);

            return(r);
        }
        public override ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent)
        {
            ChoiceResponse r = new ChoiceResponse(response, parent, this);

            return(r);
        }
Exemple #12
0
 public abstract ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent);
Exemple #13
0
 public ResponseGroup(Response response, ResponseGroup parent, QuestionGroup questionGroup)
 {
     base.Response = response;
     base.Parent   = parent;
     base.Question = questionGroup;
 }