Ejemplo n.º 1
0
        void InsertInfo()
        {
            EligibilityQuestions eQ = new EligibilityQuestions {
                eqResponse1 = YesOrNo(Q1ResponseSwitch),
                eqResponse2 = YesOrNo(Q2ResponseSwitch),
                eqResponse3 = YesOrNo(Q3ResponseSwitch),
                eqResponse4 = YesOrNo(Q4ResponseSwitch),
                eqResponse8 = YesOrNo(Q8ResponseSwitch)
            };

            if (Q4ResponseSwitch.IsToggled && Q5Response != null)
            {
                eQ.eqResponse5 = Q5Response.Text;
            }
            if (Q4ResponseSwitch.IsToggled && Q6Response != null)
            {
                eQ.eqResponse6 = SwapDate(Q6Response.Text);
            }
            eQ.eqResponse7        = Q7Response.Text;
            Application.Questions = eQ;

            //At this point the entire application object should be built throughout all of the steps
        }
Ejemplo n.º 2
0
 public ApplicationForAPI(Student student, SchoolInfo info, Guardian guardian, EligibilityQuestions eq)
 {
     enrollType           = student.enrollType;
     studentID            = student.studentID;
     lastName             = student.lastName;
     firstName            = student.firstName;
     middleName           = student.middleName;
     dateOfBirth          = student.dateOfBirth;
     streetAddress        = student.streetAddress;
     unitNumber           = student.unitNumber;
     city                 = student.city;
     state                = student.state;
     zipCode              = student.zipCode;
     phoneNumber          = student.phoneNumber;
     phoneType            = student.phoneType;
     studentEmail         = student.studentEmail;
     schoolName           = info.schoolName;
     grade                = info.grade;
     district             = info.district;
     county               = info.county;
     districtState        = info.districtState;
     guardianLastName     = guardian.guardianLastName;
     guardianFirstName    = guardianFirstName;
     guardianPhoneNumber  = guardian.guardianPhoneNumber;
     guardianPhoneType    = guardian.guardianPhoneType;
     guardianEmailAddress = guardian.guardianEmailAddress;
     relationship         = guardian.relationship;
     eqResponse1          = eq.eqResponse1;
     eqResponse2          = eq.eqResponse2;
     eqResponse3          = eq.eqResponse3;
     eqResponse4          = eq.eqResponse4;
     eqResponse5          = eq.eqResponse5;
     eqResponse6          = eq.eqResponse6;
     eqResponse7          = eq.eqResponse7;
     eqResponse8          = eq.eqResponse8;
 }