示例#1
0
 public Form1()
 {
     InitializeComponent();
     lblPingOptions.Text  = myPingOptions.ToString();
     _myPing              = new myPing();
     myPing.onReplyEvent += new myPing.ReplyEventHandler(_myPing_onReplyEvent);
     //sample usage: _myPing.doPing("192.168.128.5", myPingOptions);
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     lblPingOptions.Text = myPingOptions.ToString();
     _myPing = new myPing();
     myPing.onReplyEvent += new myPing.ReplyEventHandler(_myPing_onReplyEvent);
     //sample usage: _myPing.doPing("192.168.128.5", myPingOptions);
 }
示例#3
0
 void _myPing_onReplyEvent(object sender, myPing.PingReplyEventArgs args)
 {
     addLog(args.message);
     if(args.replytype==myPing.PingReplyTypes.done)
         enableButton(true);
 }