Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the SiteItemViewModel class.
 /// </summary>
 protected SPViewViewModel(SPViewCollectionViewModel parent, bool lazyLoadChildren)
     : base(parent, lazyLoadChildren)
 {
 }
Ejemplo n.º 3
0
 public SPViewViewModel(SPClientView view, SPViewCollectionViewModel parent)
     : this(parent, false)
 {
     if (view == null) throw new ArgumentNullException(nameof(view));
     _view = view;
 }