private void comboBoxSemester_SelectionChangeCommitted(object sender, EventArgs e) { comboBoxSection.DataSource = null; comboBoxSection.Items.Clear(); comboBoxSubject.DataSource = null; comboBoxSubject.Items.Clear(); Controller.Section section = new Controller.Section(); Controller.Subject subject = new Controller.Subject(); section.LoadAllSection(userAccount.ua_department_id, Convert.ToInt32(comboBoxSemester.SelectedValue), comboBoxSection); subject.LoadAllSubject(userAccount.ua_department_id, Convert.ToInt32(comboBoxSemester.SelectedValue), comboBoxSubject); }
public Controller.UserAccount userAccount; //For user identification public ViewSectionForm(Controller.UserAccount ua) { InitializeComponent(); section = new Controller.Section(); userAccount = ua; }