コード例 #1
0
ファイル: SPListViewModel.cs プロジェクト: rlocus/SPAccess
 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();
 }
コード例 #2
0
ファイル: SPViewViewModel.cs プロジェクト: rlocus/SPAccess
 /// <summary>
 ///     Initializes a new instance of the SiteItemViewModel class.
 /// </summary>
 protected SPViewViewModel(SPViewCollectionViewModel parent, bool lazyLoadChildren)
     : base(parent, lazyLoadChildren)
 {
 }
コード例 #3
0
ファイル: SPViewViewModel.cs プロジェクト: rlocus/SPAccess
 public SPViewViewModel(SPClientView view, SPViewCollectionViewModel parent)
     : this(parent, false)
 {
     if (view == null) throw new ArgumentNullException(nameof(view));
     _view = view;
 }