private void delIP_DelIPBanSubmitted(object sender, DelIPBan.DelIPBanSubmittedEventArgs e) { SendToServer(String.Format("{0} {1}", Constants.DelIPBan, e.ipAddress)); }
private void deleteIPBanButtonItem_Click(object sender, EventArgs e) { Dictionary<string, List<string>> ipBanList = mysql.ReadAll(Settings.Default.AuthDB, "ip_banned"); var IPs = new List<string>(); if (ipBanList.ContainsKey("ip")) { for (int i = 0; i < ipBanList["ip"].Count; i++) { IPs.Add(ipBanList["ip"][i]); } } using (var delIP = new DelIPBan()) { delIP.DelIPBanSubmitted += delIP_DelIPBanSubmitted ; delIP.ipBanList = IPs; delIP.ShowDialog(); } }