Example #1
0
 private static ListViewItem BuildPacketListViewItem(SniffedPacket packet) {
     ListViewItem item = new ListViewItem(packet.PacketType);
     item.Tag = packet;
     item.SubItems.Add(packet.ElapsedTime.ToShortTimeString());
     return item;
 }
Example #2
0
 private bool PacketContainsFilterTerm(SniffedPacket packet) {
     if (filterTextBox.HasFilterTerms) {
         return (from s in filterTextBox.FilterTerms
                 where packet.PacketType.IndexOf(s, StringComparison.OrdinalIgnoreCase) > -1
                 select s).Any();
     }
     return true;
 }
 public PacketEventArgs(SniffedPacket packet) {
     Packet = packet;
 }