private void btnAddOrder_Click(object sender, EventArgs e) { var department = GetCurrentDepartment(); if (department == null) { return; } var form = new SSPOrder(-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 SSPOrder(dglOrder.CurrentRow.Index); form.ShowDialog(); RefreshOrderList(); } }