public void Execute(Solution solution)
        {
            var allSolutionProjectsSearcher = new AllSolutionProjectsSearcher();
              var projectsInSolution = allSolutionProjectsSearcher.GetAllProjects(solution);

              int progressCount = 1;
              int projectCount = projectsInSolution.Count;
              var removeAllLicenseHeadersCommand = new RemoveLicenseHeaderFromAllFilesCommand(licenseReplacer);

              foreach (Project project in projectsInSolution)
              {
            statusBar.SetText(string.Format(Resources.UpdateSolution, progressCount, projectCount));
            removeAllLicenseHeadersCommand.Execute(project);
            progressCount++;
              }

              statusBar.SetText(string.Empty);
        }
Esempio n. 2
0
        public void Execute(Solution solution)
        {
            if (solution == null)
            {
                return;
            }

            var allSolutionProjectsSearcher = new AllSolutionProjectsSearcher();
            var projectsInSolution          = allSolutionProjectsSearcher.GetAllProjects(solution);

            int progressCount = 1;
            int projectCount  = projectsInSolution.Count;
            var removeAllLicenseHeadersCommand = new RemoveLicenseHeaderFromAllFilesCommand(_licenseReplacer);

            foreach (Project project in projectsInSolution)
            {
                _statusBar.SetText(string.Format(Resources.UpdateSolution, progressCount, projectCount));
                removeAllLicenseHeadersCommand.Execute(project);
                progressCount++;
            }

            _statusBar.SetText(string.Empty);
        }
    private void RemoveLicenseHeadersFromAllFiles(object obj)
    {
      var removeAllLicenseHeadersCommand = new RemoveLicenseHeaderFromAllFilesCommand(_licenseReplacer);

      IVsStatusbar statusBar = (IVsStatusbar) GetService (typeof (SVsStatusbar));
      statusBar.SetText (Resources.UpdatingFiles);

      removeAllLicenseHeadersCommand.Execute(obj);

      statusBar.SetText(String.Empty);
    }