Exemplo n.º 1
0
        internal void UpdateData()
        {
            BookCatalog bookCat = new BookCatalog();

            dsBookCat        = bookCat.GetAllBookInfo();
            this.DataContext = dsBookCat.Tables["Category"];
        }
Exemplo n.º 2
0
        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;
        }