public void PopulateBookInfo(ref BookInformationDialog 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 updateBookInformationDialog(BookInformationDialog infoDialog, ListBooksDialog listDialog) { infoDialog.BookTitle = listOfBooks[listDialog.SelectedIndex].name; infoDialog.Author = listOfBooks[listDialog.SelectedIndex].author; infoDialog.Publisher = listOfBooks[listDialog.SelectedIndex].publisher; infoDialog.ISBN = listOfBooks[listDialog.SelectedIndex].isbn; infoDialog.Date = listOfBooks[listDialog.SelectedIndex].date; infoDialog.Price = listOfBooks[listDialog.SelectedIndex].price; infoDialog.Stock = listOfBooks[listDialog.SelectedIndex].stock; }
// 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(); }