コード例 #1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            OrderScreen os = new OrderScreen(owningComp, owningOrder, editingOrder);

            os.MdiParent = this.MdiParent;
            os.Show();
            this.Close();
        }
コード例 #2
0
        private void btnUpdateOrder_Click(object sender, EventArgs e)
        {
            OrderScreen os = new OrderScreen(owningCompany, selectedOrder, true);

            os.MdiParent = this.MdiParent;
            os.Show();
            this.Close();
        }
コード例 #3
0
        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();
        }