示例#1
0
        public void Initialize()
        {
            _appSettings = new AppSettings
            {
                ImportPath    = "C:\\HOMEPATH\\DATA\\IN\\",
                ExportPath    = "C:\\HOMEPATH\\DATA\\OUT\\",
                FileExtension = ".dat"
            };

            _service = new ProcessFileService(Options.Create <AppSettings>(_appSettings));
        }
示例#2
0
        protected override void Execute()
        {
            var projectsController = SdlTradosStudio.Application.GetController <ProjectsController>();

            if (projectsController != null && projectsController.SelectedProjects.Any())
            {
                var processFileService = new ProcessFileService();
                processFileService.RemoveTranslationOrigin(projectsController.SelectedProjects.ToList(), "nmt");
                projectsController.RefreshProjects();
                MessageBox.Show(@"Operation is completed");
            }
        }
示例#3
0
 public CityWeatherController(ProcessFileService cityFileService)
 {
     _pService = cityFileService;
 }