Beispiel #1
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;
        }
Beispiel #2
0
        public string AddBook(
            [PexAssumeUnderTest] BookAddEdit target,
            string ISBN,
            string title,
            string author,
            double price,
            int quantity,
            string year,
            string edition,
            string publisher,
            int categoryID,
            int supplierID
            )
        {
            string result = target.AddBook
                                (ISBN, title, author, price, quantity, year, edition, publisher, categoryID, supplierID);

            return(result);
            // TODO: add assertions to method BookAddEditTest.AddBook(BookAddEdit, String, String, String, Double, Int32, String, String, String, Int32, Int32)
        }
Beispiel #3
0
 // when the AddEdit dialog loads
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     bookAddEdit = new BookAddEdit();    // Creates BookAddEdit object
 }