Пример #1
0
        private void MODIFYbtn_Click(object sender, EventArgs e)
        {
            Order order = OrderSource1.Current as Order;

            if (order == null)
            {
                MessageBox.Show("请选择一个订单进行修改");
                return;
            }


            AddModifyForm form2 = new AddModifyForm(true);

            form2.CurrentOrder = order;
            form2.Addbindings(order);

            form2.ShowDialog();
            QueryAll();
        }