コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }