Beispiel #1
0
        private Object DoWorkEventHandlerHandler(object argument, Action <ProgressChangedEventArgs> progress, Func <bool> cancellationPending)
        {
            progress(new ProgressChangedEventArgs(0, "DoWorkEventHandlerHandler starting"));
            Argument _Arg = ImportArgument;
            PRWeb    _web = PRWeb.ImportDataModel(_Arg.URL, _Arg.LinqEntitiesClassName, _Arg.InludeHidden, _Arg.GroupName, _Arg.Configuration, progress);

            progress(new ProgressChangedEventArgs(100, "DoWorkEventHandlerHandler finishing"));
            return(_web);
        }
Beispiel #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);
        }
Beispiel #3
0
 private WebsiteTreeViewNode(PRWeb parent, string url)
     : base(parent, TreeViewIcon.TreeViewRoot)
 {
     this.Header = url;
 }