public void UpdateClassesMenu() { classSource.DataSource = registerController.GetClasses(); classescomboBox1.DataSource = classSource.DataSource; classescomboBox1.DisplayMember = "ClassYearId"; classescomboBox1.ValueMember = "ClassYearId"; }