예제 #1
0
        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);
            }
        }
예제 #2
0
 protected override IEnumerable <Entity> LoadItems()
 {
     ItemDataCollection.LoadAllItemsFromDb();
     return(ItemDataCollection.Items);
 }