internal static ColumsRootTreeViewNode CreateTreeViewNode(SPMetalParameters.PRColumn[] pRColumn)
        {
            ColumsRootTreeViewNode _ret = new ColumsRootTreeViewNode();

            _ret.Items = new ObservableCollection <TreeViewNode>(ColumnTreeViewNode.CreateTreeViewNodes(pRColumn).Cast <TreeViewNode>());
            return(_ret);
        }
示例#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);
        }