示例#1
0
        protected override void Execute()
        {
            var projectController = SdlTradosStudio.Application.GetController <ProjectsController>();
            var selectedProjects  = projectController.SelectedProjects;
            var foldersPth        = new List <string>();

            foreach (var project in selectedProjects)
            {
                foldersPth.Add(project.FilePath);
            }
            var dialog = new ReportExporterControl(foldersPth);

            dialog.ShowDialog();
        }
        protected override void Execute()
        {
            var pathInfo          = new PathInfo();
            var settingsService   = new SettingsService(pathInfo);
            var projectService    = new ProjectService();
            var messageBoxService = new MessageBoxService();
            var reportService     = new ReportService(messageBoxService, projectService, settingsService);

            var studioProjectsPaths = new List <string>();
            var selectedProjects    = projectService.GetSelectedStudioProjects();

            if (selectedProjects != null)
            {
                studioProjectsPaths.AddRange(selectedProjects.Select(project => project.FilePath));
            }

            var dialog = new ReportExporterControl(studioProjectsPaths, settingsService, projectService, messageBoxService, reportService);

            dialog.ShowDialog();
        }
示例#3
0
        protected override void Execute()
        {
            var exporter = new ReportExporterControl();

            exporter.ShowDialog();
        }