Ejemplo n.º 1
0
        public ProfileViewModel(SessionViewModel session, Package package, PackageProfile profile, PackageViewModel container)
            : base(session.ServiceProvider)
        {
            if (package == null)
            {
                throw new ArgumentNullException(nameof(package));
            }
            if (profile == null)
            {
                throw new ArgumentNullException(nameof(profile));
            }
            this.session = session;
            this.package = package;
            this.profile = profile;

            Package = container;

            foreach (var projectReference in profile.ProjectReferences)
            {
                var viewModel = new ProjectViewModel(projectReference, this);
                Projects.Add(viewModel);
            }
        }
Ejemplo n.º 2
0
 public AssetMountPointViewModel(PackageViewModel package)
     : base(package)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of <see cref="LocalPackageReferenceViewModel"/>.
 /// </summary>
 /// <param name="reference">The package reference asset.</param>
 /// <param name="target">The target of the reference.</param>
 /// <param name="referencer">The referencer.</param>
 /// <param name="dependencies">The dependencies.</param>
 /// <param name="canUndoRedoCreation">Indicates whether the creation of this view model should create a transaction in the undo/redo service</param>
 public LocalPackageReferenceViewModel(PackageReference reference, PackageViewModel target, PackageViewModel referencer, DependencyCategoryViewModel dependencies, bool canUndoRedoCreation)
     : base(target, referencer, dependencies)
 {
     this.reference = reference;
     InitialUndelete(canUndoRedoCreation);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of <see cref="StorePackageReferenceViewModel"/>.
 /// </summary>
 /// <param name="dependency">The package dependency asset.</param>
 /// <param name="target">The target of the reference.</param>
 /// <param name="referencer">The referencer.</param>
 /// <param name="dependencies">The dependencies.</param>
 /// <param name="canUndoRedoCreation">Indicates whether the creation of this view model should create a transaction in the undo/redo service</param>
 public StorePackageReferenceViewModel(PackageDependency dependency, PackageViewModel target, PackageViewModel referencer, DependencyCategoryViewModel dependencies, bool canUndoRedoCreation)
     : base(target, referencer, dependencies)
 {
     this.dependency = dependency;
     InitialUndelete(canUndoRedoCreation);
 }
Ejemplo n.º 5
0
 public DirectDependencyReferenceViewModel(DependencyRange dependency, PackageViewModel referencer, DependencyCategoryViewModel dependencies, bool canUndoRedoCreation)
     : base(referencer, dependencies)
 {
     this.dependency = dependency;
     InitialUndelete(canUndoRedoCreation);
 }
Ejemplo n.º 6
0
 protected PackageReferenceViewModel(PackageViewModel referencer, DependencyCategoryViewModel dependencies)
     : base(referencer.SafeArgument(nameof(referencer)).Session)
 {
     this.dependencies = dependencies;
     Referencer        = referencer;
 }
Ejemplo n.º 7
0
 public LoadedPickablePackageViewModel(PackageViewModel package) : base(package.ServiceProvider)
 {
     Package = package;
 }
Ejemplo n.º 8
0
 protected MountPointViewModel(PackageViewModel package)
     : base(package)
 {
     Package = package;
 }