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(); }
private void btnAddOrder_Click(object sender, EventArgs e) { AddEditOrder addEditOrder = new AddEditOrder(); AddEditOrder.OrderID = 0; AddEditOrder.IsEdit = false; addEditOrder.ShowDialog(); }