internal static ITreeNodeData[] GetNodes(ITreeNodeData[] nodes) { if (nodes == null) return null; if (nodes.Length == 0 || !nodes.All(a => a.TreeNode.Parent != null && a.TreeNode.Parent.Parent == null)) return null; return nodes; }
public override sealed bool CanDrag(ITreeNodeData[] nodes) { return Context.CanDragAndDrop && nodes.Length != 0 && nodes.All(a => a is IFileTreeNodeData && ((IFileTreeNodeData)a).TreeNode.Parent == Context.FileTreeView.TreeView.Root); }