Exemplo n.º 1
0
 private void addIPBan_IPBanSubmitted(object sender, AddIPBan.IPBanSubmittedEventArgs e)
 {
     SendToServer(String.Format("{0} {1} -1 {2}", Constants.AddIPBan, e.ipBan, Constants.BanReason));
 }
Exemplo n.º 2
0
        private void addIpBanButton_Click(object sender, EventArgs e)
        {
            AddIPBan addIpBan = new AddIPBan();

            addIpBan.ShowDialog();
        }
Exemplo n.º 3
0
        private void addIPBanButtonItem_Click(object sender, EventArgs e)
        {
            using (var addIPBan = new AddIPBan())
            {
                addIPBan.IPBanSubmitted += addIPBan_IPBanSubmitted;

                addIPBan.ShowDialog();
            }
        }