private void btnOrderPortal_Click(object sender, EventArgs e) { OrderPortalScreen op = new OrderPortalScreen(); op.MdiParent = this.MdiParent; op.Show(); this.Close(); }
private void btnCancel_Click(object sender, EventArgs e) { OrderPortalScreen ops = new OrderPortalScreen(owningCompany); ops.MdiParent = this.MdiParent; ops.Show(); this.Close(); }
private void btnManageOrders_Click(object sender, EventArgs e) { //editee = Globals.companies[companyId]; //OrderPortalScreen ops = new OrderPortalScreen(editee); OrderPortalScreen ops = new OrderPortalScreen(companyId); ops.MdiParent = this.MdiParent; ops.Show(); this.Close(); }
private void btnDeleteOrder_Click(object sender, EventArgs e) { //Globals.orders.RemoveAt(orderId); Order.deleteOrder(orderId); MessageBox.Show("Order Deleted"); OrderPortalScreen ops = new OrderPortalScreen(companyId); ops.MdiParent = this.MdiParent; ops.Show(); this.Close(); }
private void btnFinish_Click(object sender, EventArgs e) { SetOrder(); //add/replace in global orders list if (editing == true) { Order.updateOrder(newOrder); } else { //Globals.orders.Add(newOrder); Order.insertOrder(newOrder); } OrderPortalScreen ops = new OrderPortalScreen(owningCompany.Id); ops.MdiParent = this.MdiParent; ops.Show(); this.Close(); }