Ejemplo n.º 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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }