public ParsedPagePacket FindPagePacketCopy(ParsedPacket packet)
        {
            ParsedPagePacket pagePacket = FindPagePacket(packet);

            if (pagePacket == null)
            {
                return(null);
            }

            ParsedPagePacket pagePacketCopy = new ParsedPagePacket(pagePacket.Packet);


            return(pagePacketCopy);
        }
        public void AddPagePacket(ParsedPacket packet)
        {
            ParsedPagePacket pagePacket = null;

            if (!Pages.ContainsKey(packet.PageNumber))
            {
                pagePacket = new ParsedPagePacket(packet);
                Pages.Add(pagePacket.PageNumber, pagePacket);
            }
            else
            {
                pagePacket = Pages[packet.PageNumber];
                if (pagePacket != null)
                {
                    pagePacket.ModifyFields(packet);
                }
            }
        }
        public ParsedPagePacket FindPagePacket(ParsedPacket packet)
        {
            ParsedSitePacket sitePacket = FindSitePacket(packet.TerminalId);

            if (sitePacket == null)
            {
                return(null);
            }

            ParsedDevicePacket devicePacket = sitePacket.FindDevicePacket(packet.ProtocolHeader);

            if (devicePacket == null)
            {
                return(null);
            }

            ParsedPagePacket pagePacket = devicePacket.FindPagePacket(packet.PageNumber);


            return(pagePacket);
        }