private void cmdNewGroup_Click(object sender, EventArgs e) { AddEditClientGroup clientGroupWindow = new AddEditClientGroup(); clientGroupWindow.ShowDialog(); if (clientGroupWindow.NewGroupAdded) { LoadGroups(); } }
private void dgvGroups_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dgvGroups.SelectedRows.Count == 0) { return; } ClientGroup clientGroup = (ClientGroup)dgvGroups.SelectedRows[0].Tag; if (clientGroup.ClientGroupID == 1) { return; } AddEditClientGroup addEditClientGroup = new AddEditClientGroup(clientGroup); addEditClientGroup.ShowDialog(); if (addEditClientGroup.clientGroupUpdated) { LoadGroups(); } }