internal void UpdateData() { BookCatalog bookCat = new BookCatalog(); dsBookCat = bookCat.GetAllBookInfo(); this.DataContext = dsBookCat.Tables["Category"]; }
private void Window_Loaded_1(object sender, RoutedEventArgs e) { BookCatalog bookCat = new BookCatalog(); dsBookCat = bookCat.GetAllBookInfo(); this.DataContext = dsBookCat.Tables["Category"]; bookAddEdit = new BookAddEdit(); // Creates BookAddEdit object //this.DataContext = dsBookCat.Tables["Category"]; //bookOrder = new BookOrder(); //userData = new UserData(); //this.orderListView.ItemsSource = bookOrder.OrderItemList; }