// Constructor public NetPingTechPanel() { InitializeComponent(); tracert = new TraceRt(); tracert.MaxHops = 20; tracert.TraceComplete += tracert_TraceComplete; // Make array routebuttons = new DisplayButton[4]; routebuttons[0] = routebutton0; routebuttons[1] = routebutton1; routebuttons[2] = routebutton2; routebuttons[3] = routebutton3; // Make array hostlabels = new DisplayLabel[11]; hostlabels[0] = hostlabel0; hostlabels[1] = hostlabel1; hostlabels[2] = hostlabel2; hostlabels[3] = hostlabel3; hostlabels[4] = hostlabel4; hostlabels[5] = hostlabel5; hostlabels[6] = hostlabel6; hostlabels[7] = hostlabel7; hostlabels[8] = hostlabel8; hostlabels[9] = hostlabel9; hostlabels[10] = hostlabel10; // Make array addresslabels = new DisplayLabel[11]; addresslabels[0] = addresslabel0; addresslabels[1] = addresslabel1; addresslabels[2] = addresslabel2; addresslabels[3] = addresslabel3; addresslabels[4] = addresslabel4; addresslabels[5] = addresslabel5; addresslabels[6] = addresslabel6; addresslabels[7] = addresslabel7; addresslabels[8] = addresslabel8; addresslabels[9] = addresslabel9; addresslabels[10] = addresslabel10; // Make array pinglabels = new DisplayLabel[11]; pinglabels[0] = pinglabel0; pinglabels[1] = pinglabel1; pinglabels[2] = pinglabel2; pinglabels[3] = pinglabel3; pinglabels[4] = pinglabel4; pinglabels[5] = pinglabel5; pinglabels[6] = pinglabel6; pinglabels[7] = pinglabel7; pinglabels[8] = pinglabel8; pinglabels[9] = pinglabel9; pinglabels[10] = pinglabel10; // The jobs we do jobs = new TraceJob[routebuttons.Length]; for(int i = 0; i < routebuttons.Length; i++) jobs[i] = new TraceJob(routebuttons[i].Tag.ToString()); }
// Constructor public NetPingTechPanel() { InitializeComponent(); tracert = new TraceRt(); tracert.MaxHops = 20; tracert.TraceComplete += tracert_TraceComplete; // Make array routebuttons = new DisplayButton[4]; routebuttons[0] = routebutton0; routebuttons[1] = routebutton1; routebuttons[2] = routebutton2; routebuttons[3] = routebutton3; // Make array hostlabels = new DisplayLabel[11]; hostlabels[0] = hostlabel0; hostlabels[1] = hostlabel1; hostlabels[2] = hostlabel2; hostlabels[3] = hostlabel3; hostlabels[4] = hostlabel4; hostlabels[5] = hostlabel5; hostlabels[6] = hostlabel6; hostlabels[7] = hostlabel7; hostlabels[8] = hostlabel8; hostlabels[9] = hostlabel9; hostlabels[10] = hostlabel10; // Make array addresslabels = new DisplayLabel[11]; addresslabels[0] = addresslabel0; addresslabels[1] = addresslabel1; addresslabels[2] = addresslabel2; addresslabels[3] = addresslabel3; addresslabels[4] = addresslabel4; addresslabels[5] = addresslabel5; addresslabels[6] = addresslabel6; addresslabels[7] = addresslabel7; addresslabels[8] = addresslabel8; addresslabels[9] = addresslabel9; addresslabels[10] = addresslabel10; // Make array pinglabels = new DisplayLabel[11]; pinglabels[0] = pinglabel0; pinglabels[1] = pinglabel1; pinglabels[2] = pinglabel2; pinglabels[3] = pinglabel3; pinglabels[4] = pinglabel4; pinglabels[5] = pinglabel5; pinglabels[6] = pinglabel6; pinglabels[7] = pinglabel7; pinglabels[8] = pinglabel8; pinglabels[9] = pinglabel9; pinglabels[10] = pinglabel10; // The jobs we do jobs = new TraceJob[routebuttons.Length]; for (int i = 0; i < routebuttons.Length; i++) { jobs[i] = new TraceJob(routebuttons[i].Tag.ToString()); } }