Exemple #1
0
 CreateAssemblyLinkedResourceCommand(ResourceListTreeNode rsrcListNode, ResourceTreeNode resTreeNode)
     : base(rsrcListNode, resTreeNode)
 {
 }
Exemple #2
0
 CreateMultiFileResourceCommand(ResourceListTreeNode rsrcListNode, ResourceTreeNode resTreeNode)
     : base(rsrcListNode, resTreeNode)
 {
 }
Exemple #3
0
 CreateFileResourceCommand(ResourceListTreeNode rsrcListNode, ResourceTreeNode[] nodes)
 {
     this.module = ILSpyTreeNode.GetModule(rsrcListNode);
     Debug.Assert(this.module != null);
     this.rsrcListNode = rsrcListNode;
     this.nodes = nodes;
 }
Exemple #4
0
 protected CreateResourceTreeNodeCommand(ResourceListTreeNode rsrcListNode, ResourceTreeNode resTreeNode)
 {
     this.module = ILSpyTreeNode.GetModule(rsrcListNode);
     Debug.Assert(this.module != null);
     this.rsrcListNode = rsrcListNode;
     this.resTreeNode = resTreeNode;
 }
		public virtual TreeViewNodeFilterResult GetFilterResult(ResourceListTreeNode node) {
			return new TreeViewNodeFilterResult(FilterResult.Hidden, false);
		}
 public virtual TreeViewNodeFilterResult GetFilterResult(ResourceListTreeNode node)
 {
     return filter.GetFilterResult(node);
 }
		public override TreeViewNodeFilterResult GetFilterResult(ResourceListTreeNode node) {
			var visibleFlags = VisibleMembersFlags.ResourceList | VisibleMembersFlags.Resource |
								VisibleMembersFlags.ResourceElement;
			bool isMatch = (flags & VisibleMembersFlags.ResourceList) != 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);
		}