Пример #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);
            }
        }
Пример #2
0
 internal bool RemoveProject(ProjectViewModel project)
 {
     return(content.Remove(project));
 }
Пример #3
0
 internal void AddProject(ProjectViewModel project)
 {
     content.Add(project);
 }
Пример #4
0
 public ProjectCodeViewModel(ProjectViewModel project)
     : base(project)
 {
 }