ContainsProject() public method

public ContainsProject ( Project project ) : bool
project Solutionizer.Models.Project
return bool
        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();
        }
Beispiel #2
0
        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();
        }