public UnderGradMin(ugminors ugmin1, String name) { InitializeComponent(); ugmin = ugmin1; rtb_title.Text = ugmin1.UgMinors.Find(x => x.name.Equals(name)).title; rtb_title.Text = ugmin1.UgMinors.Find(x => x.name.Equals(name)).description; for (int i = 0; i < ugmin1.UgMinors.Find(x => x.name.Equals(name)).courses.Count; i++) { dgv_courses.Rows.Add(); dgv_courses.Rows[i].Cells[0].Value = ugmin1.UgMinors.Find(x => x.name.Equals(name)).courses[i]; } }
private void Form1_Load(object sender, EventArgs e) { //go get the /about/info.. string jsonAbout = rj.getRestJSON("/about/"); about = JToken.Parse(jsonAbout).ToObject <About>(); rtb_about_desc.Text += about.title; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += about.description; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += about.quote; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += "\n"; rtb_about_desc.Text += about.quoteAuthor; //go get the resources string jsonResources = rj.getRestJSON("/resources/"); resources = JToken.Parse(jsonResources).ToObject <Resources>(); linkLabel1.Text = "Click me for the pdf"; linkLabel1.Tag = resources.coopEnrollment.RITJobZoneGuidelink; linkLabel2.Text = "Click me for the application"; linkLabel2.Tag = resources.studentAmbassadors.applicationFormLink; string jsonDegree = getRestData("/degrees/graduate/"); //have to return a string jsonAbout into an object //ABout Object.... graduat = JToken.Parse(jsonDegree).ToObject <GraduateDegree>(); string jsonUDegree = getRestData("/degrees/undergraduate/"); //have to return a string jsonAbout into an object //Undergrad.... undgraduat = JToken.Parse(jsonUDegree).ToObject <Undergrad>(); string jsonUmin = getRestData("/minors/UgMinors"); //have to return a string jsonAbout into an object //Undergrad.... ugmin = JToken.Parse(jsonUmin).ToObject <ugminors>(); string jsonCourse = getRestData("/course/"); //have to return a string jsonAbout into an object //Undergrad.... // courses = JToken.Parse(jsonCourse).ToObject<cours>(); string jsonEmp = getRestData("/employment/"); //have to return a string jsonAbout into an object //Employee.... employment = JToken.Parse(jsonEmp).ToObject <Employment>(); string jsonPeople = rj.getRestJSON("/people/"); people = JToken.Parse(jsonPeople).ToObject <People>(); // Let's assume that we are going to get a list of acceptable tabs to show the user from a call. //retrived from the server string jsonfooter = rj.getRestJSON("/footer/"); fsoc = JToken.Parse(jsonfooter).ToObject <fsocial>(); }
public Courses(String s, ugminors ugmin) { InitializeComponent(); // rtb_course.Text = }