public static void LoadStaffCoursesLocal(ref ComboBox dropDown, string staffId, string levelId = "", bool includeAll = false)
        {
            var repo     = new StaffCourseRepo();
            var allItems = repo.GetCoursesByStaffLocal(staffId, levelId);

            if (includeAll)
            {
                allItems.Insert(0, new StaffCourseList
                {
                    CourseTitle = "All Courses",
                    Id          = Base.IdForSelectAll
                });
            }
            else
            {
                allItems.Insert(0, new StaffCourseList()
                {
                    CourseTitle = "Select Course",
                    Id          = Base.IdForSelect
                });
            }

            dropDown.DataSource    = allItems;
            dropDown.DisplayMember = "CourseTitle";
            dropDown.ValueMember   = "CourseId";
            dropDown.SelectedIndex = 0;
        }
 public FrmAssignStaffCourse()
 {
     InitializeComponent();
     _repo = new StaffCourseRepo();
 }