Example #1
0
        // Upon clicking the button the data is loaded into a ResourceDialog and shown to the user
        private void resource2_Click(object sender, EventArgs e)
        {
            string    jsonRes = getRESTData("/resources/studentServices");
            Resources res     = JToken.Parse(jsonRes).ToObject <Resources>();

            string parOne = res.studentServices.academicAdvisors.title + "\n" + res.studentServices.academicAdvisors.description + "\n" + res.studentServices.academicAdvisors.faq + "\n" + "\n";

            parOne += res.studentServices.facultyAdvisors.title + "\n" + res.studentServices.facultyAdvisors.description;

            string parTwo = res.studentServices.istMinorAdvising.title + "\n";

            for (int i = 0; i < res.studentServices.istMinorAdvising.minorAdvisorInformation.Count; i++)
            {
                parTwo += "     " + res.studentServices.istMinorAdvising.minorAdvisorInformation[i].title + "\n" + "     " + res.studentServices.istMinorAdvising.minorAdvisorInformation[i].advisor + "\n" + "     " + res.studentServices.istMinorAdvising.minorAdvisorInformation[i].email + "\n" + "\n";
            }

            parTwo += "\n" + res.studentServices.professonalAdvisors.title + "\n";

            for (int i = 0; i < res.studentServices.professonalAdvisors.advisorInformation.Count; i++)
            {
                parTwo += "     " + res.studentServices.professonalAdvisors.advisorInformation[i].name + "\n" + "     " + res.studentServices.professonalAdvisors.advisorInformation[i].department + "\n" + "     " + res.studentServices.professonalAdvisors.advisorInformation[i].email + "\n" + "\n";
            }


            ResourceDialog popup = new ResourceDialog();

            popup.Show(res.studentServices.title, parOne, parTwo);
        }
Example #2
0
        // Upon clicking the button the data is loaded into a ResourceDialog and shown to the user
        private void resource3_Click(object sender, EventArgs e)
        {
            string    jsonRes = getRESTData("/resources/tutorsAndLabInformation");
            Resources res     = JToken.Parse(jsonRes).ToObject <Resources>();

            ResourceDialog popup = new ResourceDialog();

            popup.ShowTutor(res.tutorsAndLabInformation.title, res.tutorsAndLabInformation.description, res.tutorsAndLabInformation.tutoringLabHoursLink);
        }
Example #3
0
        // Upon clicking the button the data is loaded into a ResourceDialog and shown to the user and shown to the user and shown to the user
        private void resource1_Click(object sender, EventArgs e)
        {
            string    jsonRes = getRESTData("/resources/studyAbroad");
            Resources res     = JToken.Parse(jsonRes).ToObject <Resources>();

            string allText = res.studyAbroad.description + "\n" + "\n";

            for (int i = 0; i < res.studyAbroad.places.Count; i++)
            {
                allText += res.studyAbroad.places[i].nameOfPlace + ":" + "\n" + " - " + res.studyAbroad.places[i].description + "\n" + "\n";
            }

            ResourceDialog popup = new ResourceDialog();

            popup.Show(res.studyAbroad.title, res.studyAbroad.description, allText);
        }
Example #4
0
        // Upon clicking the button the data is loaded into a ResourceDialog and shown to the user
        private void resource6_Click(object sender, EventArgs e)
        {
            string    jsonRes = getRESTData("/resources/coopEnrollment");
            Resources res     = JToken.Parse(jsonRes).ToObject <Resources>();

            string desc1 = res.coopEnrollment.enrollmentInformationContent[0].title + "\n" + res.coopEnrollment.enrollmentInformationContent[0].description + "\n" + "\n";

            desc1 += res.coopEnrollment.enrollmentInformationContent[1].title + "\n" + res.coopEnrollment.enrollmentInformationContent[1].description + "\n" + "\n";

            string desc2 = res.coopEnrollment.enrollmentInformationContent[2].title + "\n" + res.coopEnrollment.enrollmentInformationContent[2].description + "\n" + "\n";

            desc2 += res.coopEnrollment.enrollmentInformationContent[3].title + "\n" + res.coopEnrollment.enrollmentInformationContent[3].description + "\n" + "\n";

            ResourceDialog popup = new ResourceDialog();

            popup.ShowCoop(res.coopEnrollment.title, desc1, desc2, res.coopEnrollment.RITJobZoneGuidelink);
        }
Example #5
0
        // Upon clicking the button the data is loaded into a ResourceDialog and shown to the user
        private void resource4_Click(object sender, EventArgs e)
        {
            string    jsonRes = getRESTData("/resources/studentAmbassadors");
            Resources res     = JToken.Parse(jsonRes).ToObject <Resources>();

            string allText = "";

            for (int i = 0; i < res.studentAmbassadors.subSectionContent.Count; i++)
            {
                allText += res.studentAmbassadors.subSectionContent[i].title + "\n" + res.studentAmbassadors.subSectionContent[i].description + "\n" + "\n";
            }

            allText += res.studentAmbassadors.note;

            ResourceDialog popup = new ResourceDialog();

            popup.Show(res.studentAmbassadors.title, res.studentAmbassadors.ambassadorsImageSource, allText, res.studentAmbassadors.applicationFormLink);
        }