protected override void LoadChildren() { if (IsLoaded) return; var contentTypesViewModel = new SPListContentTypeCollectionViewModel(_list, this); Children.Add(contentTypesViewModel); var fieldsViewModel = new SPFieldCollectionViewModel(_list, this); Children.Add(fieldsViewModel); var viewsViewModel = new SPViewCollectionViewModel(_list, this); Children.Add(viewsViewModel); base.LoadChildren(); }
/// <summary> /// Initializes a new instance of the SiteItemViewModel class. /// </summary> protected SPViewViewModel(SPViewCollectionViewModel parent, bool lazyLoadChildren) : base(parent, lazyLoadChildren) { }
public SPViewViewModel(SPClientView view, SPViewCollectionViewModel parent) : this(parent, false) { if (view == null) throw new ArgumentNullException(nameof(view)); _view = view; }