Exemple #1
0
 /*Precondition: Needs a customer to be selected in datagrid to work
  Postcondition: Opens form to create an order for the selected customer */
 private void btnCreateOrder_Click(object sender, EventArgs e)
 {
     if (currCustomer != null)
     {
         NewOrderForm orderForm = new NewOrderForm(null);
         orderForm.addCustomer(currCustomer);
         orderForm.Show();
     }
 }
Exemple #2
0
 /*Precondition:
  Postcondition: Open form to create a new order */
 private void btnNewOrder_Click(object sender, EventArgs e)
 {
     NewOrderForm nof = new NewOrderForm(this);
     nof.Show();
 }