Ejemplo n.º 1
0
        private void cmdNewGroup_Click(object sender, EventArgs e)
        {
            AddEditClientGroup clientGroupWindow = new AddEditClientGroup();

            clientGroupWindow.ShowDialog();
            if (clientGroupWindow.NewGroupAdded)
            {
                LoadGroups();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }