public AGVSession_OMARK(int agvid, AGVComPara ComPara) : base() { try { this.DeviceID = agvid; this.DeviceType = 0; this.DeviceName = "AGV小车"; this.ComPara = ComPara; communicationobserve_timer.Elapsed += new System.Timers.ElapsedEventHandler(CommunicationObser); connect = ConnectSocket; SocketSend = SendData; } catch (Exception ex) { LogHelper.WriteErrorLog(ex); } }
public AGVSession_OMARK() { communicationobserve_timer.Elapsed += new System.Timers.ElapsedEventHandler(CommunicationObser); connect = ConnectSocket; SocketSend = SendData; }