private void newOrderFormToolStripMenuItem_Click(object sender, EventArgs e) { Form salesOrderForm = new salesOrderForm(business); salesOrderForm.MdiParent = this; salesOrderForm.Text = "Sales Form " + childFormNumber++; salesOrderForm.Show(); }
public frmConfirmation(salesOrderForm s) { InitializeComponent(); salesForm = s; // If have out of stock product, show product names // let user choose modify or cancel order if (salesForm.getOutOfStockProducts() != null) { lblMessage.Text = salesForm.getOutOfStockProducts() + "Please modify your order."; modifyButton.Visible = true; cancelButton.Visible = true; confirmButton.Visible = false; } else { lblMessage.Text = "Your order is placed." +Environment.NewLine + "Your order ID is:" + salesForm.GetOrderID; confirmButton.Visible = true; modifyButton.Visible = false; cancelButton.Visible = false; } }
public frmConfirmation(salesOrderForm s) { InitializeComponent(); salesForm = s; // If have out of stock product, show product names // let user choose modify or cancel order if (salesForm.getOutOfStockProducts() != null) { lblMessage.Text = salesForm.getOutOfStockProducts() + "Please modify your order."; modifyButton.Visible = true; cancelButton.Visible = true; confirmButton.Visible = false; } else { lblMessage.Text = "Your order is placed." + Environment.NewLine + "Your order ID is:" + salesForm.GetOrderID; confirmButton.Visible = true; modifyButton.Visible = false; cancelButton.Visible = false; } }
public frmCatalog(salesOrderForm s) { InitializeComponent(); salesForm = s; }