private void OnProcessingComplete(TapStreamDecoder.ProcessingResult result, TapStreamDecoder decoder, string direction, Map27ConnectionState theConnectionState)
 {
     switch (result)
     {
         case TapStreamDecoder.ProcessingResult.Ok:
             ReportDecodedSignal(decoder.Map27Packet.ToArray(), decoder.MessageEndTimeText, decoder.MessageEndTime, direction, theConnectionState);
             break;
         case TapStreamDecoder.ProcessingResult.FcsError:
             ReportError("FCS error", decoder.MessageEndTimeText, decoder.MessageEndTime, direction);
             break;
         case TapStreamDecoder.ProcessingResult.FormatError:
             ReportError("Format error", decoder.MessageEndTimeText, decoder.MessageEndTime, direction);
             break;
         case TapStreamDecoder.ProcessingResult.OutOfFrameBytesFound:
             ReportOutOfFrameBytes(decoder.OutOfFrameBytes, decoder.MessageEndTimeText, decoder.MessageEndTime, direction);
             break;
         default:
             ReportError("Unexpected processing result", decoder.MessageEndTimeText, decoder.MessageEndTime, direction);
             break;
     }
 }
 private void TxMapDecoder_OnProcessingComplete(TapStreamDecoder.ProcessingResult result)
 {
     OnProcessingComplete(result, m_TxMapDecoder, "  Tx", m_TxState);
 }