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)); }
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"); } }
public CityWeatherController(ProcessFileService cityFileService) { _pService = cityFileService; }