private void TLAutoDeviceSerialPortDataReceived(object sender, TLAutoDeviceDataReceivedEventArgs e)
 {
     lock (_lockObj)
     {
         T t;
         if (_deviceCommand != null)
         {
             if (_deviceCommand.ParseReceivedData(e.Bytes, out t))
             {
                 PostResult(t);
             }
         }
     }
 }
Пример #2
0
        private void OnDataReceived(TLAutoDeviceDataReceivedEventArgs e)
        {
            var handler = DataReceived;

            handler?.Invoke(this, e);
        }