Example #1
0
        private void UpdateProjectReports(WizardContext wizardContext, FileBasedProject project, AutomaticTask automaticTask)
        {
            if (project == null)
            {
                return;
            }

            try
            {
                _supressProjectControllerEvents = true;

                _projectsController.Close(project);
                _projectSettingsService.UpdateAnalysisTaskReportInfo(project, automaticTask);
                _projectsController.Add(project.FilePath);

                switch (wizardContext.Owner)
                {
                case Enumerators.Controller.Files:
                    _filesController.Activate();
                    break;

                case Enumerators.Controller.Projects:
                    _projectsController.Activate();
                    break;
                }
            }
            finally
            {
                _supressProjectControllerEvents = false;
            }
        }
        public void Execute(List <SystemFileInfo> importFiles, Language langauge)
        {
            _filesController.Activate();

            Run(importFiles, langauge);
        }