/* * The following method is used to take the information entered into the UI * and insert it into the application object. This method creates a new * SchoolInfo object and takes each field from the UI and sets the corresponding * field of the object equal to the information entered. The method lastly * sets the SchoolInfo object belonging to the Application object equal to * this newly created SchoolInfo. */ void InsertInfo() { SchoolInfo schoolInfo = new SchoolInfo { schoolName = SchoolName.Text, district = SchoolDistrict.Text, county = SchoolCounty.Text, districtState = StatePicker.SelectedItem.ToString(), grade = GradePicker.SelectedItem.ToString() }; Application.LastSchool = schoolInfo; }
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; }