private void OnLoadMoreBooks()
 {
     if (SelectedCategory != null)
     {
         BookDataService.GetMoreBooksByCategory(GetBooksCallback, SelectedCategory.CategoryID, _pageSize);
     }
 }
 public void LoadBooksByTitle()
 {
     //Books.Clear();
     Books = null;
     if (SelectedCategory != null)
     {
         BookDataService.GetBooksByTitle(GetBooksCallback, SelectedCategory.CategoryID, TitleFilter);
     }
 }
 public void LoadBooksByCategory()
 {
     //Books.Clear();
     Books = null;
     if (SelectedCategory != null)
     {
         BookDataService.GetBooksByCategory(GetBooksCallback, SelectedCategory.CategoryID, _pageSize);
     }
 }
 private void OnSaveBooks()
 {
     BookDataService.Save(SaveBooksCallback, null);
 }
 public void LoadCategories()
 {
     //Categories.Clear();
     Categories = null;
     BookDataService.GetCategories(GetCategoriesCallback);
 }
        //private void InitializeModels()
        //{
        //    Categories = new ObservableCollection<Category>();
        //    Books = new ObservableCollection<Book>();
        //    BooksOfTheDay = new ObservableCollection<BookOfDay>();
        //    SelectedBook = new Book();
        //}

        public void LoadBookOfDays()
        {
            //BooksOfTheDay.Clear();
            BooksOfTheDay = null;
            BookDataService.GetBooksOfTheDay(GetBooksOfTheDayCallback);
        }