예제 #1
0
        private void btnEditOrder_Click(object sender, EventArgs e)
        {
            AddEditOrder addEditOrder = new AddEditOrder();

            AddEditOrder.OrderID = Convert.ToInt16(dtOrdersList.SelectedRows[0].Tag);
            AddEditOrder.IsEdit  = true;
            addEditOrder.ShowDialog();
        }
예제 #2
0
        private void btnAddOrder_Click(object sender, EventArgs e)
        {
            AddEditOrder addEditOrder = new AddEditOrder();

            AddEditOrder.OrderID = 0;
            AddEditOrder.IsEdit  = false;
            addEditOrder.ShowDialog();
        }