}//end of minor private void GIS_Click(object sender, EventArgs e) { // get About information string jsonAbout = getRestData("/minors/"); // need a way to get the JSON form into a Minor object Minor minor = JToken.Parse(jsonAbout).ToObject <Minor>(); // start displaying the About object information on the screen foreach (UgMinor umin in minor.UgMinors) { //adding the degree details for GIS if (umin.name.StartsWith("GIS")) { GIS.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; ugcourses.ClearSelected(); } } }//end of onclick
}//end of degree private void minors_Enter(object sender, EventArgs e) { // get About information string jsonAbout = getRestData("/minors/"); // need a way to get the JSON form into a Minor object Minor minor = JToken.Parse(jsonAbout).ToObject <Minor>(); // start displaying the About object information on the screen foreach (UgMinor umin in minor.UgMinors) { //adding the degree details for DBDDI if (umin.name.StartsWith("DBDDI")) { DBDDI.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugcourses.ClearSelected(); ugadvisor.Text = umin.note; } //adding the degree details for GIS else if (umin.name.StartsWith("GIS")) { GIS.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for MEDINFO else if (umin.name.StartsWith("MEDINFO")) { MEDINFO.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for MDDEV else if (umin.name.StartsWith("MDDEV")) { MDDEV.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for MDEV else if (umin.name.StartsWith("MDEV")) { MDEV.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for NETSYS else if (umin.name.StartsWith("NETSYS")) { NETSYS.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for WEBDD else if (umin.name.StartsWith("WEBDD")) { WEBDD.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } //adding the degree details for WEBD else { WEBD.Text = umin.name; ugtitle.Text = umin.title; ugdescription.Text = umin.description; ugcourses.DataSource = umin.courses; ugadvisor.Text = umin.note; } } }//end of minor