Example #1
0
        private void OnPacketReceived(PacketReceivedEventArgs e)
        {
            PacketReceivedEventHandler handler = PacketReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected void OnPacketReceived(PacketReceivedEventArgs e)
        {
            PacketReceivedEventHandler recHandler = PacketReceived;

            if (recHandler != null)
            {
                recHandler(this, e);
            }
        }