Example #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     this.pingTimer.Tick           += this.Timer_Tick;
     this.pingSender                = new PingSender();
     this.pingSender.PingCompleted += this.PingSender_PingCompleted;
     this.tbHostName.Text           = "www.google.fr";
     this.ResetTexts();
     this.chart.Series["Time"].Points.AddXY(20, 200);
     this.chart.ChartAreas["ChartArea1"].RecalculateAxesScale();
     this.panel1.Height = 0;
     this.panel2.Height = 0;
     this.panel3.Height = 0;
     this.btnPanel1.Tag = this.panel1;
     this.btnPanel2.Tag = this.panel2;
     this.btnPanel3.Tag = this.panel3;
     this.Height       -= expHeight * 3;
     this.SetIcon(Properties.Resources.status_s);
     this.Notification(ToolTipIcon.Info, "PingMe", "Ready to ping!", 3000);
 }
Example #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     this.pingTimer.Tick += this.Timer_Tick;
     this.pingSender = new PingSender();
     this.pingSender.PingCompleted += this.PingSender_PingCompleted;
     this.tbHostName.Text = "www.google.fr";
     this.ResetTexts();
     this.chart.Series["Time"].Points.AddXY(20, 200);
     this.chart.ChartAreas["ChartArea1"].RecalculateAxesScale();
     this.panel1.Height = 0;
     this.panel2.Height = 0;
     this.panel3.Height = 0;
     this.btnPanel1.Tag = this.panel1;
     this.btnPanel2.Tag = this.panel2;
     this.btnPanel3.Tag = this.panel3;
     this.Height -= expHeight * 3;
     this.SetIcon(Properties.Resources.status_s);
     this.Notification(ToolTipIcon.Info, "PingMe", "Ready to ping!", 3000);
 }