public void printBookToBookdialog(ListBooksDialog lbd) { foreach (Book displayBook in listOfBooks) { lbd.AddDisplayItems(displayBook.ToString()); } }
public void updateBookInformationStaff(BookDialog bd, ListBooksDialog list) { listOfBooks[list.SelectedIndex].name = bd.BookTitle; listOfBooks[list.SelectedIndex].author = bd.Author; listOfBooks[list.SelectedIndex].publisher = bd.Publisher; listOfBooks[list.SelectedIndex].isbn = bd.ISBN; listOfBooks[list.SelectedIndex].price = bd.Price; listOfBooks[list.SelectedIndex].date = bd.Date; listOfBooks[list.SelectedIndex].stock = bd.Stock; }
public void editBookStaffView(BookDialog dia, ListBooksDialog list) { dia.BookTitle = listOfBooks[list.SelectedIndex].name; dia.Author = listOfBooks[list.SelectedIndex].author; dia.Publisher = listOfBooks[list.SelectedIndex].publisher; dia.ISBN = listOfBooks[list.SelectedIndex].isbn; dia.Price = listOfBooks[list.SelectedIndex].price; dia.Date = listOfBooks[list.SelectedIndex].date; dia.Stock = listOfBooks[list.SelectedIndex].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 StaffWindow(XXX xxx): this() { } // Without :this(), InitializeComponent() is not called private void StaffWindow_Load(object sender, EventArgs e) { listCustomersDialog = new ListCustomersDialog(); customerDialog = new CustomerDialog(); listBooksDialog = new ListBooksDialog(); bookDialog = new BookDialog(); listCompleteTransactionsDialog = new ListCompleteTransactionsDialog(); showCompleteTransactionDialog = new ShowCompleteTransactionDialog(); listPendingTransactionsDialog = new ListPendingTransactionsDialog(); showPendingTransactionDialog = new ShowPendingTransactionDialog(); }
// 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(); }
public void ListBooks(ref ListBooksDialog lb) { lb.AddDisplayItems(books.ToArray()); }