Пример #1
0
 /// <summary>
 /// Инициализация основного списка
 /// </summary>
 private void InitList()
 {
     db          = new AppDbCrawler();
     db.Notify  += Notify;
     DataContext = model;
     LoadBooksFromDb();
     model.ListCategories();
 }
Пример #2
0
 public BookWindow(Book modelBook, AppDbCrawler crawler, string action = "NEW")
 {
     InitializeComponent();
     model       = modelBook;
     DataContext = model;
     _crawler    = crawler;
     _action     = action;
     if (_action == "NEW")
     {
         btnRemove.Visibility = Visibility.Hidden;
     }
 }