private void btnAddProduct_Click(object sender, EventArgs e) { if (quote == null) { quote = quoteController.Create(selectedCustomer, DateTime.Today.AddDays(15)); } subProductForTransactionController.Create(selectedSubProduct, quote); LoadQuoteItems(); txtProduct.Text = string.Empty; txtProduct.Focus(); }
private void btnAddProduct_Click(object sender, EventArgs e) { if (sale == null) { sale = saleController.Create(selectedCustomer); } subProductForTransactionController.Create(selectedSubProduct, sale); LoadSaleItems(); txtProduct.Text = string.Empty; txtProduct.Focus(); }