示例#1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            ucAddStudent1.Hide();
            ucAddTeacher1.Hide();
            ucAddCourse1.Hide();
            ucAddProgram1.Hide();
            ucAddDepartment1.Hide();
            ucAssignCourses1.Hide();

            try
            {
                var courses = courseCRUD.GetAllCourses();
                ucCourseOfferings1.cbSelectCourse.DataSource    = courses;
                ucCourseOfferings1.cbSelectCourse.ValueMember   = "CourseID";
                ucCourseOfferings1.cbSelectCourse.DisplayMember = "Title";

                ucCourseOfferings1.UpdateDGVcourseOfferings();
                ucCourseOfferings1.BringToFront();
                ucCourseOfferings1.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#2
0
 public IList <Course> GetAllCourses(string sortOrder, string searchString)
 {
     return(courseTableActions.GetAllCourses(sortOrder, searchString));
 }