Exemple #1
0
        // Sort by Faculty button
        private void button10_Click(object sender, EventArgs e)
        {
            // Get Research from the API
            string   jsonResearch = getRESTData("/research/");
            Research research     = JToken.Parse(jsonResearch).ToObject <Research>();

            listBox2.Items.Clear();
            foreach (ByFaculty fac in research.byFaculty)
            {
                listBox2.Items.Add(fac.facultyName + " - " + fac.username);
            }
        }
Exemple #2
0
        // Sort by Interest Area button
        private void button9_Click(object sender, EventArgs e)
        {
            // Get Research from the API
            string   jsonResearch = getRESTData("/research/");
            Research research     = JToken.Parse(jsonResearch).ToObject <Research>();

            listBox2.Items.Clear();
            foreach (ByInterestArea area in research.byInterestArea)
            {
                listBox2.Items.Add(area.areaName);
            }
        }
Exemple #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //go get about....
            string jsonAbout = rj.getJSON("/about/");

            //have to turn the string jsonAbout into an object
            //About object...
            about = JToken.Parse(jsonAbout).ToObject <About>();
            Console.WriteLine(about);
            aboutDescription.Text = about.description;
            quote.Text            = about.quote;
            Author.Text           = about.quoteAuthor;


            //get Resources
            string jsonResources = rj.getJSON("/resources/");

            resources = JToken.Parse(jsonResources).ToObject <Resources>();
            Console.WriteLine(resources);

            // get degrees
            string jsonDegree = rj.getJSON("/degrees/");

            // Console.WriteLine(jsonDegree);
            degrees = JToken.Parse(jsonDegree).ToObject <Degrees>();

            //get Minors
            string jsonMinor = rj.getJSON("/minors/");

            minors = JToken.Parse(jsonMinor).ToObject <Minors>();

            //Research
            string jsonResearch = rj.getJSON("/research/");

            research = JToken.Parse(jsonResearch).ToObject <Research>();



            //throw the link into the linkLabel
            linkLabel1.Text = resources.coopEnrollment.RITJobZoneGuidelink;
            linkLabel2.Text = resources.studentAmbassadors.applicationFormLink;
        }