internal static ListRootTreeViewNode CreateTreeViewNode(PRList[] value)
        {
            ListRootTreeViewNode _ret = new ListRootTreeViewNode();

            _ret.Items = new ObservableCollection <TreeViewNode>(ListTreeViewNode.CreateTreeViewNodes(value).Cast <TreeViewNode>());
            return(_ret);
        }
Exemple #2
0
        internal static WebsiteTreeViewNode CreateChildren(PRWeb parent, string url)
        {
            WebsiteTreeViewNode _ret = new WebsiteTreeViewNode(parent, url);

            _ret.Items = new ObservableCollection <TreeViewNode>();
            _ret.Items.Add(ListRootTreeViewNode.CreateTreeViewNode(parent.List));
            _ret.Items.Add(ContentTypeRootTreeViewNode.CreateTreeViewNode(parent.ContentType.OrderBy <PRContentType, string>(_pctx => _pctx.Name).ToArray <PRContentType>()));
            _ret.Items.Add(ColumsRootTreeViewNode.CreateTreeViewNode(parent.SharePointColumns));
            return(_ret);
        }