private void makeMinorWindow(UgMinor ugm) { MinorsForm mf = new MinorsForm(ugm); mf.Text = "Undergraduate Minor"; mf.Show(); }
private void lbl_minors_Click(object sender, EventArgs e) { Label lbl = sender as Label; UgMinor ugm = minors_dict[lbl.Text]; makeMinorWindow(ugm); }
public MinorsForm(UgMinor ugm) { InitializeComponent(); this.ugm = ugm; lbl_title.Text = ugm.title; lbl_desc.Text = ugm.description; // Courses foreach (string course_i in ugm.courses) { cb_minors_courses.Items.Add(course_i); } lbl_note.Text = "Note: " + ugm.note; }