void PardonPlayer(object sender, EventArgs e) { foreach (PlayerListItem i in SelectedItems) { ProxyControl.Pardon(i.Item.Username); } }
void HandlePardonClick(object sender, EventArgs e) { string u = TextInput.GetInput(this, "Who"); if (u == null) { return; } ProxyControl.Pardon(u); }