예제 #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;
     }
 }