protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren) : this() { Parent = parent; _lazyLoadChildren = lazyLoadChildren; if (_lazyLoadChildren) { Children.Add(DummyChild); } if (Parent != null) { FailEvent = Parent.FailEvent; SuccessEvent = Parent.SuccessEvent; } }
public SPContentTypeViewModel(SPClientContentType contentType, TreeViewItemViewModel parent) : this(parent, false) { if (contentType == null) throw new ArgumentNullException(nameof(contentType)); _contentType = contentType; }
/// <summary> /// Initializes a new instance of the SiteItemViewModel class. /// </summary> protected SPContentTypeViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren) : base(parent, lazyLoadChildren) { }
public SPWebViewModel(SPClientWeb web, TreeViewItemViewModel parent) : this(parent, false) { if (web == null) throw new ArgumentNullException(nameof(web)); Web = web; }
/// <summary> /// Initializes a new instance of the SiteItemViewModel class. /// </summary> public SPContextCollectionViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren) : base(parent, lazyLoadChildren) { }
public SPSiteViewModel(SPClientSite site, TreeViewItemViewModel parent) : this(parent, true) { if (site == null) throw new ArgumentNullException(nameof(site)); _site = site; }
/// <summary> /// Initializes a new instance of the SiteItemViewModel class. /// </summary> protected SPFieldViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren) : base(parent, lazyLoadChildren) { }
public SPFieldViewModel(SPClientField field, TreeViewItemViewModel parent) : this(parent, false) { if (field == null) throw new ArgumentNullException(nameof(field)); _field = field; }