public void swTCP_OnError(Object eventSender, SocketWrench.ErrorEventArgs eventArgs) { //var comm = new Comm(); // if (!string.IsNullOrEmpty(comm.CommErrorEvent(eventArgs.Error.ToString(), eventArgs.Description))) Comm.KBComm.CommErrorEvent?.Invoke(eventArgs.Error.ToString(), eventArgs.Description); //riteToLogFile("Error in Comm class. Error is " + eventArgs.Error + " " + eventArgs.Description); }
public void swTCP_OnError(Object eventSender, SocketWrench.ErrorEventArgs eventArgs) { if (CommErrorEvent != null) { CommErrorEvent(eventArgs.Error.ToString(), eventArgs.Description); } WriteToLog("Error in Comm class. Error is " + eventArgs.Error + " " + eventArgs.Description); }