Exemplo n.º 1
0
 public WeakDocumentListener(PETreeNode node, HexDocument doc)
 {
     this.nodeWeakRef        = new WeakReference(node);
     doc.OnDocumentModified += HexDocument_OnDocumentModified;
 }
		public virtual TreeViewNodeFilterResult GetFilterResult(PETreeNode node) {
			return new TreeViewNodeFilterResult(FilterResult.Hidden, false);
		}
Exemplo n.º 3
0
		public virtual TreeViewNodeFilterResult GetFilterResult(PETreeNode node) {
			return new TreeViewNodeFilterResult();
		}
Exemplo n.º 4
0
		public override TreeViewNodeFilterResult GetFilterResult(PETreeNode node) {
			var visibleFlags = VisibleMembersFlags.PE | VisibleMembersFlags.Hex;
			bool isMatch = (flags & VisibleMembersFlags.PE) != 0;
			if ((flags & visibleFlags) == 0)
				return new TreeViewNodeFilterResult(FilterResult.Hidden, isMatch);
			if (isMatch)
				return new TreeViewNodeFilterResult(FilterResult.Match, isMatch);
			return new TreeViewNodeFilterResult(FilterResult.Recurse, isMatch);
		}
Exemplo n.º 5
0
		public virtual TreeViewNodeFilterResult GetFilterResult(PETreeNode node) {
			return filter.GetFilterResult(node);
		}
Exemplo n.º 6
0
			public WeakDocumentListener(PETreeNode node, HexDocument doc) {
				this.nodeWeakRef = new WeakReference(node);
				doc.OnDocumentModified += HexDocument_OnDocumentModified;
			}