Exemple #1
0
        public int CopyFrom(PacketList Original)
        {
            int c = 0;

            Clear();
            foreach (PacketData pd in Original.PacketDataList)
            {
                PacketDataList.Add(pd);
                c++;
            }
            return(c);
        }
Exemple #2
0
 public PacketTabPage()
 {
     PLLoaded           = new PacketList();
     PL                 = new PacketList();
     lbPackets          = new ListBox();
     lbPackets.Parent   = this;
     lbPackets.Location = new System.Drawing.Point(0, 0);
     lbPackets.Size     = new System.Drawing.Size(this.Width, this.Height);
     lbPackets.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     lbPackets.DrawMode = DrawMode.OwnerDrawFixed;
     LoadedFileTitle    = "Packets";
     CurrentSync        = 0xFFFF;
 }
Exemple #3
0
        public int FilterFrom(PacketList Original)
        {
            int c = 0;

            Clear();
            foreach (PacketData pd in Original.PacketDataList)
            {
                if (DoIShowThis(pd))
                {
                    PacketDataList.Add(pd);
                    c++;
                }
            }
            return(c);
        }