public TranslationMemoryViewModel(SettingsService settingsService, ContentParsingService contentParsingService, SerializerService serializerService, SDLTMAnonymizerView controller) { SettingsService = settingsService; _contentParsingService = contentParsingService; _serializerService = serializerService; _controller = controller; TmService = new TmService(settingsService, _contentParsingService, _serializerService); IsEnabled = true; TmsCollection = new ObservableCollection <TmFile>(SettingsService.GetTmFiles()); }
public MainViewModel(SettingsService settingsService, SDLTMAnonymizerView controller) { var contentParsingService = new ContentParsingService(); var serializerService = new SerializerService(); _translationMemoryViewModel = new TranslationMemoryViewModel(settingsService, contentParsingService, serializerService, controller); var excelImportExportService = new ExcelImportExportService(); var systemFieldsService = new SystemFieldsService(_translationMemoryViewModel.TmService, settingsService); var customFieldsService = new CustomFieldsService(_translationMemoryViewModel.TmService, settingsService); ContentFilteringRulesViewModel = new ContentFilteringRulesViewModel(_translationMemoryViewModel, excelImportExportService); SystemFieldsViewModel = new SystemFieldsViewModel(_translationMemoryViewModel, systemFieldsService, excelImportExportService, serializerService); CustomFieldsViewModel = new CustomFieldsViewModel(_translationMemoryViewModel, customFieldsService, excelImportExportService, serializerService); LogViewModel = new LogViewModel(_translationMemoryViewModel, serializerService, excelImportExportService); }