示例#1
0
 protected virtual void OnReplyError(SerialEventArgs info)
 {
     if (ReplyError != null)
     {
         Task.Run(() => ReplyError?.Invoke(this, info));
     }
 }
示例#2
0
文件: Serial.cs 项目: rockxcn/CNCLib
        protected virtual void OnReplyError(SerialEventArgs info)
        {
            WriteLastCommandReplyType(EReplyType.ReplyError);

            if (ReplyError != null)
            {
                Task.Run(() => ReplyError?.Invoke(this, info));
            }
        }