public ValidatorViewModelFactory(
     IRecentFilesManager recentFiles,
     IPmmlValidator pmmlValidator,
     IOpenFileDialogService openFileDialogService,
     IGetFileNameService getFileNameService)
 {
     _recentFiles           = recentFiles;
     _pmmlValidator         = pmmlValidator;
     _openFileDialogService = openFileDialogService;
     _getFileNameService    = getFileNameService;
 }
예제 #2
0
        public ValidatorViewModel(ITabViewModelManager tabViewModelManager,
                                  IRecentFilesManager recentFiles,
                                  IPmmlValidator pmmlValidator,
                                  IOpenFileDialogService openFileDialogService,
                                  IGetFileNameService getFileNameService)
        {
            _tabViewModelManager   = tabViewModelManager;
            _pmmlValidator         = pmmlValidator;
            _openFileDialogService = openFileDialogService;
            _getFileNameService    = getFileNameService;
            _recentFiles           = recentFiles;

            BrowseFileCommand = new SimpleDelegateCommand(BrowseFile);
            ValidateCommand   = new SimpleDelegateCommand(ValidateFile, CanValidate);

            _errorMessages = new ObservableCollection <IErrorMessage>();
            ErrorMessages  = new ReadOnlyObservableCollection <IErrorMessage>(_errorMessages);

            _outputWindowMessages = new ObservableCollection <string>();
            OutputWindowMessages  = new ReadOnlyObservableCollection <string>(_outputWindowMessages);
        }