Esempio n. 1
0
 protected void AppendNodesToData(DataObject data, IEnumerable<TreeNodeAdv> nodes)
 {
     data.SetData(nodes.ToArray());
     data.SetContentRefs(
         from c in nodes
         where c.Tag is ResourceNode
         select (c.Tag as ResourceNode).ResLink as IContentRef);
     data.SetFiles(
         from c in nodes
         where c.Tag is NodeBase && !ContentProvider.IsDefaultContentPath((c.Tag as NodeBase).NodePath)
         select (c.Tag as NodeBase).NodePath);
 }