Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            AddOrder addOrder = new AddOrder(new Order(), true, orderService);

            addOrder.ShowDialog();
            Reflash();
        }
Example #2
0
        //编辑选中的订单
        private void btnModify_Click(object sender, EventArgs e)
        {
            Order order = bindingSource1.Current as Order;

            if (order == null)
            {
                MessageBox.Show("请选择一个订单修改");
            }
            else
            {
                AddOrder form = new AddOrder(order, false, orderService);
                form.ShowDialog();
                Reflash();
            }
        }