private void btnOrderPortal_Click(object sender, EventArgs e)
        {
            OrderPortalScreen op = new OrderPortalScreen();

            op.MdiParent = this.MdiParent;
            op.Show();
            this.Close();
        }
Пример #2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            OrderPortalScreen ops = new OrderPortalScreen(owningCompany);

            ops.MdiParent = this.MdiParent;
            ops.Show();
            this.Close();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
0
        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();
        }