private void LoadCourseItems() { Cursor.Current = Cursors.WaitCursor; var courseItems = new CourseCollection(); courseItems.LoadAllItemsFromDb(); cboCourse.Items.Clear(); foreach (var item in courseItems.Items) { cboCourse.Items.Add(item); } }
protected override IEnumerable <Entity> LoadItems() { ItemDataCollection.LoadAllItemsFromDb(); return(ItemDataCollection.Items); }