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
 internal bool RemoveProject(ProjectViewModel project)
 {
     return(content.Remove(project));
 }
Ejemplo n.º 3
0
 internal void AddProject(ProjectViewModel project)
 {
     content.Add(project);
 }
Ejemplo n.º 4
0
 public ProjectCodeViewModel(ProjectViewModel project)
     : base(project)
 {
 }