private void btnIvite_Click(object sender, EventArgs e) { List <UUID> toBan = new List <UUID>(); foreach (UUID key in picker.SelectedAvatars.Keys) { toBan.Add(key); } if (toBan.Count > 0) { Client.Groups.RequestBanAction(group.ID, GroupBanAction.Ban, toBan.ToArray(), (xs, xe) => { parent.RefreshBans(); }); } Close(); }