public void PopulateBookInfo(ref BookInWishListDialog bid, Book b)
 {
     bid.BookTitle = b.Title;
     bid.Author    = b.Author;
     bid.Publisher = b.Publisher;
     bid.ISBN      = b.ISBN;
     bid.Price     = b.Price;
     bid.Date      = b.Date;
     bid.Stock     = b.Stock;
 }
 public void updateWishListDialog(BookInWishListDialog bws, WishListDialog wishListDialog)
 {
     bws.BookTitle = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].name;
     bws.Author    = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].author;
     bws.Publisher = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].publisher;
     bws.ISBN      = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].isbn;
     bws.Date      = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].date;
     bws.Price     = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].price;
     bws.Stock     = LoggedinCustomer.wishList[wishListDialog.SelectedIndex].stock;
 }
示例#3
0
 // XXX You may add overriding constructors (constructors with different set of arguments).
 // If you do so, make sure to call :this()
 // public CustomerWindow(XXX xxx): this() { }
 // Without :this(), InitializeComponent() is not called
 private void CustomerWindow_Load(object sender, EventArgs e)
 {
     customerDialog               = new CustomerDialog();
     loginDialog                  = new LoginDialog();
     listBooksDialog              = new ListBooksDialog();
     bookInformationDialog        = new BookInformationDialog();
     cartDialog                   = new CartDialog();
     wishListDialog               = new WishListDialog();
     bookInWishListDialog         = new BookInWishListDialog();
     listTransactionHistoryDialog = new ListTransactionHistoryDialog();
     showTransactionDialog        = new ShowTransactionDialog();
 }