public AddProject ( |
||
project | ||
return | void |
public void AddProject(Project project) { IsSccBound |= project.IsSccBound; if (_solutionRoot.ContainsProject(project)) { return; } _solutionRoot.AddProject(project); var referenceFolder = _solutionRoot.Items.OfType <SolutionFolder>().SingleOrDefault(); if (referenceFolder != null) { RemoveProject(referenceFolder, project); } if (_settings.IncludeReferencedProjects) { AddReferencedProjects(project, _settings.ReferenceTreeDepth); } var projectCount = SolutionItems.Flatten <SolutionItem, SolutionProject, SolutionFolder>(p => p.Items).Count(); _statusMessenger.Show(String.Format("{0} projects in the solution.", projectCount)); Refresh(); }
public void AddProject(Project project) { IsSccBound |= project.IsSccBound; if (_solutionRoot.ContainsProject(project)) { return; } _solutionRoot.AddProject(project); var referenceFolder = _solutionRoot.Items.OfType <SolutionFolder>().SingleOrDefault(); if (referenceFolder != null) { RemoveProject(referenceFolder, project); } if (_settings.IncludeReferencedProjects) { AddReferencedProjects(project, _settings.ReferenceTreeDepth); } Refresh(); }