/// <summary>
        /// Called when packet data is received. Override to implement handling for specific packets.
        /// </summary>
        /// <param name="buffer">The packet data.</param>
        protected override void HandlePacket(byte[] buffer) {
            if (buffer == null) {
                throw new ArgumentNullException("buffer");
            }

            if (buffer.Length == OutGaugePack.MinSize || buffer.Length == OutGaugePack.MaxSize) {
                OutGaugePack packet = new OutGaugePack(buffer);
                OnPacketReceived(new OutGaugeEventArgs(packet));
            }
        }
        /// <summary>
        /// Called when packet data is received. Override to implement handling for specific packets.
        /// </summary>
        /// <param name="buffer">The packet data.</param>
        protected override void HandlePacket(byte[] buffer)
        {
            if (buffer == null)
            {
                throw new ArgumentNullException("buffer");
            }

            if (buffer.Length == OutGaugePack.MinSize || buffer.Length == OutGaugePack.MaxSize)
            {
                OutGaugePack packet = new OutGaugePack(buffer);
                OnPacketReceived(new OutGaugeEventArgs(packet));
            }
        }
 /// <summary>
 /// Creates a new OutGaugeEventArgs object.
 /// </summary>
 /// <param name="packet">The OutGauge packet.</param>
 public OutGaugeEventArgs(OutGaugePack packet) {
     Packet = packet;
 }
 /// <summary>
 /// Creates a new OutGaugeEventArgs object.
 /// </summary>
 /// <param name="packet">The OutGauge packet.</param>
 public OutGaugeEventArgs(OutGaugePack packet)
 {
     Packet = packet;
 }