private void AssignButton_Click(object sender, EventArgs e)
        {
            GroupSelectionForm gsf = new GroupSelectionForm(this.allGroups, id, "");

            gsf.ShowDialog();
            if (gsf.changesMade)
            {
                updateGroupsAssignment();
                NewAdded = true;
            }
        }
 private void EditButton_Click(object sender, EventArgs e)
 {
     if (GroupsListBox.SelectedIndex >= 0 && id != "")
     {
         String             groupId = (String)assignedToGroup[GroupsListBox.SelectedIndex];
         GroupSelectionForm gsf     = new GroupSelectionForm(this.allGroups, id, groupId);
         gsf.ShowDialog();
         if (gsf.changesMade)
         {
             updateGroupsAssignment();
             NewAdded = true;
         }
     }
 }