Example #1
0
        private void getBooks()
        {
            //gets all books..
            var repo          = new LibsysRepo();
            var tempBooksList = repo.GetBooks <FullBooks>();

            BooksList = FullBooksModel.ConvertToObservableCollection(tempBooksList);
        }
Example #2
0
 /// <summary>
 /// Search for objects
 /// </summary>
 /// <param name="o"></param>
 private void SearchItems(object o)
 {
     switch (FilterTypID)
     {
     case 0:
     {
         SearchResultList = new ObservableCollection <FullBooks>((new LibsysRepo()).SearchAllItemBook(SearchKey));
         BooksList        = FullBooksModel.ConvertToObservableCollection(SearchResultList);
     }
     break;
     }
 }