private void btnCancel_Click(object sender, EventArgs e) { OrderScreen os = new OrderScreen(owningComp, owningOrder, editingOrder); os.MdiParent = this.MdiParent; os.Show(); this.Close(); }
private void btnUpdateOrder_Click(object sender, EventArgs e) { OrderScreen os = new OrderScreen(owningCompany, selectedOrder, true); os.MdiParent = this.MdiParent; os.Show(); this.Close(); }
private void btnAddItem_Click(object sender, EventArgs e) { newItem.orderId = owningOrder.id; newItem.productId = productId; newItem.productName = pName;//cboProduct.SelectedText; newItem.quantity = quant; if (editingItem == true) { Globals.orderItems[newItem.id - 1] = newItem; } else { Globals.orderItems.Add(newItem); } OrderScreen os = new OrderScreen(owningComp, owningOrder, editingOrder); os.MdiParent = this.MdiParent; os.Show(); this.Close(); }