Пример #1
0
 protected override void LoadChildren()
 {
     if (IsLoaded) return;
     var websViewModel = new SPWebCollectionViewModel(Web, this);
     Children.Add(websViewModel);
     var listsViewModel = new SPListCollectionViewModel(Web, this);
     Children.Add(listsViewModel);
     var contentTypesViewModel = new SPWebContentTypeCollectionViewModel(Web, this);
     Children.Add(contentTypesViewModel);
     var fieldsViewModel = new SPSiteFieldCollectionViewModel(Web, this);
     Children.Add(fieldsViewModel);
     base.LoadChildren();
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the SiteItemViewModel class.
 /// </summary>
 protected SPListViewModel(SPListCollectionViewModel parent, bool lazyLoadChildren)
     : base(parent, lazyLoadChildren)
 {
 }
Пример #3
0
 public SPListViewModel(SPClientList list, SPListCollectionViewModel parent)
     : this(parent, false)
 {
     if (list == null) throw new ArgumentNullException(nameof(list));
     _list = list;
 }