Example #1
0
        public void MinorsAPI()
        {
            string getMinorsData = getRestData("/minors/");
            Minors minors        = JToken.Parse(getMinorsData).ToObject <Minors>();

            minor1.Text = minors.UgMinors[0].title;
            minor2.Text = minors.UgMinors[1].title;
            minor3.Text = minors.UgMinors[2].title;
            minor4.Text = minors.UgMinors[3].title;
            minor5.Text = minors.UgMinors[4].title;
            minor6.Text = minors.UgMinors[5].title;
            minor7.Text = minors.UgMinors[6].title;
            minor8.Text = minors.UgMinors[7].title;
        }
Example #2
0
        private void ShowMinorsInfo(int i)
        {
            string getMinorsData = getRestData("/minors/");
            Minors minors        = JToken.Parse(getMinorsData).ToObject <Minors>();
            String getcourses    = "";

            foreach (String concen1 in minors.UgMinors[i].courses)
            {
                getcourses += concen1 + "\n";
            }

            MessageBox.Show(
                minors.UgMinors[i].title + "\n\n" +
                minors.UgMinors[i].description + "\n\n" +
                getcourses
                );
        }