コード例 #1
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();
 }
コード例 #2
0
 public void PopulatePendingTransaction(ref ShowPendingTransactionDialog spt, Transaction t)
 {
     spt.AddDisplayItems(t.Cart.ToArray());
     spt.AddDisplayItems("====================================================");
     spt.AddDisplayItems("Total Price: $" + t.Price);
 }