Exemplo n.º 1
0
 public void ListCompletedTransactions(ref ListCompleteTransactionsDialog ct)
 {
     foreach (Transaction t in completedTransactions)
     {
         ct.AddDisplayItems(t.Customer.Username + " : " + t);
     }
 }
Exemplo n.º 2
0
 // 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();
 }