private Document GenerateBody(SubmittedGeneralRegistrationForm Form, TimeZoneInfo TimeZone)
        {
            List <OpenXmlElement> pageParts = new List <OpenXmlElement>();

            // Now add all the generated parts
            // The code for these parts is in /FormSections
            pageParts.AddRange(PageTitleSection.GetSection(Form, TimeZone));
            pageParts.AddRange(SchoolAndGradeSection.GetSection(Form.Form.School, Form.Form.Grade));
            pageParts.AddRange(SubmittedBySection.GetSection(Form.Form.SubmittedBy));
            pageParts.AddRange(StudentInfoSection.GetSection(Form.Form.Student, TimeZone));
            pageParts.AddRange(EnrolmentDetailsSection.GetSection(Form.Form.EnrollmentDetails));
            pageParts.AddRange(SiblingSection.GetSection(Form.Form.Siblings));
            pageParts.AddRange(EALSection.GetSection(Form.Form.EALInfo));
            pageParts.AddRange(CitizenshipSection.GetSection(Form.Form.Citizenship));
            pageParts.AddRange(FirstNationsSection.GetSection(Form.Form.FirstNationsInfo));
            pageParts.AddRange(ContactsSection.GetSection(Form.Form.Contacts));

            if (Form.Form.StVitalExtraRequirements != null)
            {
                pageParts.AddRange(StVitalExtraSection.GetSection(Form.Form.StVitalExtraRequirements));
            }

            pageParts.AddRange(FormEndSection.GetSection(Form, TimeZone));
            return(new Document(new Body(pageParts)));
        }
        private Document GenerateBody(SubmittedPreKApplicationForm Form, TimeZoneInfo TimeZone)
        {
            List <OpenXmlElement> pageParts = new List <OpenXmlElement>();

            // Now add all the generated parts
            // The code for these parts is in /FormSections
            pageParts.AddRange(PageTitleSection.GetSection(Form, TimeZone));
            pageParts.AddRange(SchoolPreferencesSection.GetSection(Form.Form.SchoolPreferences));
            pageParts.AddRange(StudentInfoSection.GetSection(Form.Form.Student, TimeZone, true));
            pageParts.AddRange(SubmittedBySection.GetSection(Form.Form.SubmittedBy));
            pageParts.AddRange(SiblingSection.GetSection(Form.Form.Siblings));
            pageParts.AddRange(PreKInfoSection.GetSection(Form.Form.PreKInfo));
            pageParts.AddRange(ContactsSection.GetSection(Form.Form.Contacts));
            pageParts.AddRange(FormEndSection.GetSection(Form, TimeZone));
            return(new Document(new Body(pageParts)));
        }