private void OnLostLink() { if (this.LostLink != null) { LostLinkEventArgs linkArgs = new LostLinkEventArgs(); linkArgs.IP = this.currIp; linkArgs.Port = this.currPort; this.LostLink.Invoke(this, linkArgs); } }
private void LostLinkEventHandler(object sender, LostLinkEventArgs e) { string str = ""; OnLog("网络断开!"); //if( this.ConnectPLC(ref str)==false) //{ // OnLog("重新连接失败!"); //} //else //{ // OnLog("重新连接成功!"); //} }
private void LostLinkEventHandler(object sender, LostLinkEventArgs e) { }