示例#1
0
 public EmptyResponse(Response response, ResponseGroup parent, Comment question)
 {
     // TODO: Complete member initialization
     this.Response = response;
     this.Parent   = parent;
     this.Question = question;
 }
示例#2
0
 public RealValueResponse(Response response, ResponseGroup parent, RealValueQuestion realValueQuestion, double responseValue)
 {
     this.Response      = response;
     this.Parent        = parent;
     this.Question      = realValueQuestion;
     this.ResponseValue = responseValue;
 }
示例#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;
 }
示例#6
0
 public ChoiceResponse(Response response, ResponseGroup parent, ChoiceQuestion question)
 {
     this.Response = response;
     this.Parent   = parent;
     this.Question = question;
     this.choices  = CreateEmptyChoices(response);
 }
示例#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;
 }
示例#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);
        }
示例#9
0
 public override ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent)
 {
     return(new EmptyResponse(response, parent, this));
 }
示例#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);
        }
示例#12
0
 public abstract ResponseBase CreateEmptyResponse(Response response, ResponseGroup parent);
示例#13
0
 public ResponseGroup(Response response, ResponseGroup parent, QuestionGroup questionGroup)
 {
     base.Response = response;
     base.Parent   = parent;
     base.Question = questionGroup;
 }