예제 #1
0
 protected PackageReferenceViewModel(PackageViewModel target, PackageViewModel referencer, DependencyCategoryViewModel dependencies)
     : base(target.SafeArgument(nameof(target)).Session)
 {
     this.dependencies = dependencies;
     Referencer        = referencer;
     Target            = target;
 }
예제 #2
0
 protected DirectoryBaseViewModel(PackageViewModel package)
     : base(package.SafeArgument(nameof(package)).Session)
 {
     SubDirectories = new ReadOnlyObservableCollection <DirectoryViewModel>(subDirectories);
     // ReSharper disable DoNotCallOverridableMethodsInConstructor - looks like an issue in resharper
     DependentProperties.Add(nameof(Parent), new[] { nameof(Path), nameof(Package), nameof(Root) });
     // ReSharper restore DoNotCallOverridableMethodsInConstructor
     RegisterMemberCollectionForActionStack(nameof(Assets), Assets);
 }
예제 #3
0
 protected PackageReferenceViewModel(PackageViewModel referencer, DependencyCategoryViewModel dependencies)
     : base(referencer.SafeArgument(nameof(referencer)).Session)
 {
     this.dependencies = dependencies;
     Referencer        = referencer;
 }