protected PackageReferenceViewModel(PackageViewModel target, PackageViewModel referencer, DependencyCategoryViewModel dependencies) : base(target.SafeArgument(nameof(target)).Session) { this.dependencies = dependencies; Referencer = referencer; Target = target; }
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); }
protected PackageReferenceViewModel(PackageViewModel referencer, DependencyCategoryViewModel dependencies) : base(referencer.SafeArgument(nameof(referencer)).Session) { this.dependencies = dependencies; Referencer = referencer; }