示例#1
0
 private void netTest()
 {
     try
     {
         lblShowInfo.Dispatcher.Invoke(new setTextBlockTextDelegate(setTextBlockText), this.lblShowInfo, SysBLL.RunCmd("ping 10.88.240.2"));
     }
     catch (ThreadAbortException ae) { log.Write("error:" + ae.Message); }
     catch (Exception ex) { log.Write("error:网络测试异常:" + ex.Message); }
 }