public void ShowCustomerHistory(ref ListTransactionHistoryDialog th)
 {
     if (!loggedOn)
     {
         throw new BookShopException("This operation requires login.");
     }
     currentCustomer.showHistory(ref th);
 }
Example #2
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();
 }
 public void showHistory(ref ListTransactionHistoryDialog th)
 {
     th.AddDisplayItems(transactionHistory.ToArray());
 }