Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     bt = blacklistType.blank;
     output = "";
     ip = "";
     mac = "";
     username = "";
     hall = "";
     resident = "";
     logSource = "";
     logMessage = "";
     logCount = "";
     room = "";
     blacklistIP = "";
     blacklistIPWhois = "";
     name = "";
     number = "";
     vendor = "";
     jackID = "";
     QRadar = "";
     location = "";
     switchInfo = "";
     cb_blacklisted.Text = "--Please Select--";
     p_active.Location = new Point(12, 39);
     p_excessive.Location = new Point(12, 39);
     p_hybrid.Location = new Point(12, 39);
     p_LogSupport.Location = new Point(12, 39);
     othread = new Thread(new ThreadStart(this.errorCodeWatch));
     othread.Start();
     gb_DHCP.Hide();
     killThread = false;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Name: Kyle Avery
 /// Created on: 1/17/2013
 /// Updated on: n/a
 /// Purpose: Select the different panels for each type of search 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cb_blacklisted_SelectedIndexChanged(object sender, EventArgs e)
 {
     switch (cb_blacklisted.Text)
     {
         case "--Please Select--":
             p_excessive.Hide();
             p_active.Hide();
             p_hybrid.Hide();
             p_LogSupport.Hide();
             bt = blacklistType.blank;
             break;
         case "Excessive Blacklisted":
             p_active.Hide();
             p_LogSupport.Hide();
             p_hybrid.Hide();
             p_excessive.BringToFront();
             p_excessive.Show();
             Application.DoEvents();
             bt = blacklistType.excessive;
             break;
         case "Active Blacklisted":
             p_excessive.Hide();
             p_LogSupport.Hide();
             p_hybrid.Hide();
             p_active.BringToFront();
             p_active.Show();
             Application.DoEvents();
             bt = blacklistType.active;
             break;
         case "Hybrid Blacklisted":
             p_excessive.Hide();
             p_LogSupport.Hide();
             p_active.Hide();
             p_hybrid.BringToFront();
             p_hybrid.Show();
             Application.DoEvents();
             bt = blacklistType.hybrid;
             break;
         case "Log Support":
             p_excessive.Hide();
             p_hybrid.Hide();
             p_active.Hide();
             p_LogSupport.BringToFront();
             p_LogSupport.Show();
             Application.DoEvents();
             bt = blacklistType.logSupport;
             break;
     }
 }