private void btnAddOrder_Click(object sender, EventArgs e) { var department = GetCurrentDepartment(); if (department == null) { return; } var form = new WHOrder(-1); form.ShowDialog(); RefreshOrderList(); }
private void btnClone_Click(object sender, EventArgs e) { var department = GetCurrentDepartment(); if (department == null) { return; } if (dglOrder.CurrentRow.Index >= 0) { var form = new WHOrder(dglOrder.CurrentRow.Index); form.ShowDialog(); RefreshOrderList(); } }