예제 #1
0
 internal static bool CanExecute(ILSpyTreeNode[] nodes)
 {
     return nodes.Length > 0 &&
         nodes.All(n => n is PropertyTreeNode);
 }
예제 #2
0
		internal static bool CanExecute(ILSpyTreeNode[] nodes)
		{
			return nodes.Length > 0 &&
				nodes.All(n => n is AssemblyTreeNode && !(n.Parent is AssemblyTreeNode));
		}
예제 #3
0
 internal static bool CanExecute(ILSpyTreeNode[] nodes)
 {
     return nodes.Length > 0 &&
         nodes.All(n => n is ResourceElementTreeNode);
 }
예제 #4
0
		static bool CanExecute(ILSpyTreeNode[] nodes) {
			return nodes.Length > 0 &&
				nodes.All(n => n is TypeTreeNode) &&
				FilterOutGlobalTypes(nodes).Length > 0;
		}
예제 #5
0
		static bool CanExecute(ILSpyTreeNode[] nodes) {
			return nodes.Length > 0 &&
				nodes.All(n => n is MethodTreeNode);
		}
예제 #6
0
		static bool CanExecute(ILSpyTreeNode[] nodes) {
			return nodes != null &&
				nodes.All(a => a is NamespaceTreeNode);
		}
예제 #7
0
		static bool CanExecute(ILSpyTreeNode[] nodes) {
			return nodes != null &&
				nodes.Length > 0 &&
				nodes.All(a => a is NamespaceTreeNode) &&
				nodes.Any(a => ((NamespaceTreeNode)a).Name != string.Empty) &&
				nodes.IsInSameModule() &&
				nodes[0].Parent.Children.Any(a => a is NamespaceTreeNode && ((NamespaceTreeNode)a).Name == string.Empty);
		}
예제 #8
0
 static bool CanExecute(ILSpyTreeNode[] nodes)
 {
     return nodes != null &&
         nodes.Length > 0 &&
         nodes.All(n => n is AssemblyTreeNode && ((AssemblyTreeNode)n).IsNetModule);
 }
예제 #9
0
 static bool IsVisible(ILSpyTreeNode[] nodes)
 {
     return nodes != null &&
         nodes.Length > 0 &&
         nodes.All(n => n is AssemblyTreeNode && ((AssemblyTreeNode)n).IsAssembly);
 }
예제 #10
0
 static bool CanExecute(ILSpyTreeNode[] nodes)
 {
     return nodes != null &&
         nodes.Length > 0 &&
         nodes.All(n => n is AssemblyTreeNode && ((AssemblyTreeNode)n).IsAssembly &&
             ((AssemblyTreeNode)n).LoadedAssembly.AssemblyDefinition.Modules.Count == 1);
 }