Exemplo n.º 1
0
 private void ProtoOnLineReceived(object sender, LineTransmitEventArgs <IntergasFrame> e)
 {
     if (e.Line is IntergasResponseFrame frame)
     {
         FrameReceived?.Invoke(this, new IntergasResponseFrameEventArgs(frame));
     }
 }
Exemplo n.º 2
0
 private void OnAttachedProtoOnLineReceived(object sender, LineTransmitEventArgs <T> args)
 {
     if (ShowLines && !HideIncoming && Window != null && Window.IsHandleCreated && !Window.IsDisposed)
     {
         if (Window.InvokeRequired)
         {
             // ensure it's queued
             Window.BeginInvoke((Action <T, bool>)LogColor, args.Line, true);
         }
         else
         {
             LogColor(args.Line, true);
         }
     }
 }
Exemplo n.º 3
0
 private void LineReceivedHandler(object sender, LineTransmitEventArgs <ZektorCommand> e)
 {
     _deviceState.Update(e.Line);
 }