private void btnAddWholesale_Click(object sender, EventArgs e) { Customer customer; frmAddWholesale addWholesaleForm = new frmAddWholesale(); customer = addWholesaleForm.GetNewCustomer(); if (customer != null) { customers.Add(customer); } }
private void btnAddWholesale_Click(object sender, EventArgs e) { Customer customer; // TODO: Add code that lets the user enter a new wholesale customer // and adds that customer to the customer list frmAddWholesale addwholesaleForm = new frmAddWholesale(); customer = addwholesaleForm.GetNewCustomer(); if (customer != null) { customers.Add(customer); } }