public ValidatorViewModelFactory( IRecentFilesManager recentFiles, IPmmlValidator pmmlValidator, IOpenFileDialogService openFileDialogService, IGetFileNameService getFileNameService) { _recentFiles = recentFiles; _pmmlValidator = pmmlValidator; _openFileDialogService = openFileDialogService; _getFileNameService = getFileNameService; }
public SmartSession(ISmartWindowManager smartWindowManager) { _smartWindowManager = smartWindowManager; _commandEnvironment = new CommandEnvironment(this); _configer = new Configer(); _progressMonitorManager = new ProgressMonitorManager(smartWindowManager.MainForm as Form); _recentFilesManager = new RecentFilesManager(20); _temporalFileManager = new TemporalFileManager(); AttachEvents(); CreatePythonEngine(); CreateMonitoringSession(); }
public BatchRunnerModel(IApplicationProvider appProvider, IRecentFilesManager recentFilesMgr) { m_AppProvider = appProvider; m_RecentFilesMgr = recentFilesMgr; RecentFiles = new ObservableCollection <string>(m_RecentFilesMgr.RecentFiles); InstalledVersions = m_AppProvider.GetInstalledVersions().ToArray(); if (!InstalledVersions.Any()) { throw new UserMessageException("Failed to detect any installed version of the host application"); } }
public BatchRunnerModel(IApplicationProvider appProvider, IRecentFilesManager recentFilesMgr, IMacroFileFilterProvider macroFilterProvider, Func <BatchJob, IBatchRunJobExecutor> execFact) { m_AppProvider = appProvider; m_RecentFilesMgr = recentFilesMgr; RecentFiles = new ObservableCollection <string>(m_RecentFilesMgr.RecentFiles); InputFilesFilter = appProvider.InputFilesFilter; MacroFilesFilter = macroFilterProvider.GetSupportedMacros() .Union(new FileFilter[] { FileFilter.AllFiles }).ToArray(); m_ExecFact = execFact; InstalledVersions = m_AppProvider.GetInstalledVersions().ToArray(); if (!InstalledVersions.Any()) { throw new UserMessageException("Failed to detect any installed version of the host application"); } }
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); }
public IRecentFileViewModel CreateRecentFileViewModel(string location, IRecentFilesManager manager) { return(new RecentFileViewModel(location, manager)); }
public BatchRunnerModel(IRecentFilesManager recentFilesMgr) { m_RecentFilesMgr = recentFilesMgr; RecentFiles = new ObservableCollection <string>(m_RecentFilesMgr.RecentFiles); }
public ShellViewModel(ITabViewModelManager tabViewModelManager, IRecentFilesManager recentFiles) { _tabViewModelManager = tabViewModelManager; _recentFiles = recentFiles; _recentFiles.Initialize(tabViewModelManager); }
public RecentFileViewModel(string location, IRecentFilesManager recentFilesManager) { _recentFilesManager = recentFilesManager; LoadRecentFileCommand = new SimpleDelegateCommand(LoadRecentFile); _location = location; }