ADDemo.main.removeGroup_Click C# (CSharp) Метод

removeGroup_Click() приватный Метод

Handle clicks to the removeGroup button
private removeGroup_Click ( object sender, EventArgs e ) : void
sender object object from which the event was sent
e EventArgs Arguments to the event
Результат void
        private void removeGroup_Click(object sender, EventArgs e)
        {
            foreach (int index in userGroups.SelectedIndices)
            {
                currentUser.Groups.Remove((string)userGroups.Items[index]);
                newGroup.Text = (string) userGroups.Items[index];
            }
            userBinding.ResetBindings(false);
        }