public QuestionAssignmentViewModel(
     QuestionAssignmentHTML parmaQA
     )
     : base(parmaQA)
 {
     _questionAssignmentHTML = parmaQA;
 }
Example #2
0
        //dont pass in higher data structures
        public Question init(Purpose paramPurpose,
                             string paramTitle,
                             string paramComment,
                             string paramLeft,
                             string paramRight,
                             long paramHash)
        {
            base.init(paramTitle,
                      paramComment,
                      paramLeft,
                      paramRight,
                      paramHash);

            //left and right already done
            Purpose = paramPurpose;
            QuestionAssignment dummy = new QuestionAssignment(0, 0, 0, 0);

            dummy.Question = this;
            dummy.Row      = this;
            OutOf          = new QuestionAssignmentHTML(dummy, false, 0).outOf;

            return(this);
        }