private void packetRecieved(UdpRecievedEventArgs e)
        {
            if (this.isPaused)
            {
                return;
            }

            CanPacket cp = e.Message;

            if (this.filterCheckBox.Checked &&
                (cp.getCanIdBase10() < this.fromFilter ||
                 cp.getCanIdBase10() > this.toFilter))
            {
                return;
            }

            cp.packet = idCounter;
            this.canPacketList.Add(e.Message);

            this.isNewPacket = true;
            idCounter++;
            if (idCounter > 5000)
            {
                idCounter = 0;
            }
        }
Beispiel #2
0
        protected virtual void OnUdpRecieved(UdpRecievedEventArgs e)
        {
            if (recieverFormEventHandler != null)
            {
                recieverFormEventHandler(e);
            }

            if (loggerFormEventHandler != null)
            {
                loggerFormEventHandler(e);
            }

            if (carDataEventHandler != null)
            {
                carDataEventHandler(e);
            }
        }