Beispiel #1
0
        private void AddOrder()
        {
            AddOrder addform = new AddOrder();

            addform.ShowDialog();
            OrderDetails newOdetail = addform.GetOrderI();

            if (newOdetail != null)
            {
                Oporder.OrderList.Add(newOdetail);
            }
        }
        private void btnOrder_Click(object sender, EventArgs e)
        {
            AddOrder addOrderForm = new AddOrder(this, selectedCustomer);

            addOrderForm.ShowDialog();
        }