static bool CanExecute(DocumentTreeNodeData[] nodes) { return nodes != null && nodes.Length > 0 && nodes.All(a => a is NamespaceNode) && nodes.Any(a => ((NamespaceNode)a).Name != string.Empty) && IsInSameModule(nodes) && nodes[0].TreeNode.Parent != null && nodes[0].TreeNode.Parent.DataChildren.Any(a => a is NamespaceNode && ((NamespaceNode)a).Name == string.Empty); }
static bool CanExecute(DocumentTreeNodeData[] nodes) => nodes != null && (nodes.Length == 0 || nodes.Any(a => a is DsDocumentNode));