public PVHdrItemDNS(PacketViewer parent, DNSH h, bool ischecked) { Hdr = h; Parent = parent; IsChecked = ischecked; }
private void grouptree_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e) { if (e.NewValue == null) return; if (e.NewValue.GetType() == typeof(Packet)) { if (pview == null) pview = new PacketViewer(); pview.Pkt = (Packet)(e.NewValue); if (!(pview.Visibility == System.Windows.Visibility.Visible)) pview.Show(); } //BOOKMARK // IF IT IS A PACKET, OPEN PACKET VIEW WINDOW ON IT }
// constructor public PVHdrItem(PacketViewer parent, H hdr, bool ischecked) { Hdr = hdr; Parent = parent; IsChecked = ischecked; }