/// <summary> /// Initializes a new instance of the <see cref="ConvertViewModel" /> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="options">The options.</param> public ConvertViewModel(IEventAggregator eventAggregator, IConverterOptions options, IOperationProvider operationProvider) : base(eventAggregator, options) { this.operationProvider = operationProvider; this.operationProvider.RegisterOperation(new SaveConfigurationOperation( options, new DirectoryHelper(), new FileProxy(), new FolderProxy(), new OutputConfigurationFileHelper(new FileProxy(), new EnvironmentProxy()))); this.operationProvider.RegisterOperation(new ExtractSaveOperation( Options, new CompressedSaveChecker(), new ZipFileHelper( new ZipFileProxy(), new FileProxy(), new MessageBoxProxy()), new EnvironmentProxy(), new FileProxy(), new FolderProxy())); this.operationProvider.RegisterOperation(new ConvertSaveOperation(Options, new FileProxy(), new DirectoryHelper())); this.operationProvider.RegisterOperation(new CopyModOperation(Options)); getOrCreateCancellationTokenSource = () => { return(CancellationTokenSource); }; }
public CopyModOperation(IConverterOptions options) { modCopier = new ModCopier( options, new FileProxy(), new FolderProxy(), new DirectoryHelper(), new MessageBoxProxy(), new DirectoryCopyHelper(), new SaveGameNameTranslator()); }
public SaveConfigurationOperation( IConverterOptions options, IDirectoryHelper directoryHelper, IFileProxy fileProxy, IFolderProxy folderProxy, IOutputConfigurationFileHelper outputConfigurationHelper) { this.options = options; this.directoryHelper = directoryHelper; this.fileProxy = fileProxy; this.folderProxy = folderProxy; this.outputConfigurationHelper = outputConfigurationHelper; }
public ExtractSaveOperation( IConverterOptions options, ICompressedSaveChecker saveChecker, IZipFileHelper zipFileHelper, IEnvironmentProxy environmentProxy, IFileProxy fileProxy, IFolderProxy folderProxy) { this.options = options; this.saveChecker = saveChecker; this.zipFileHelper = zipFileHelper; this.environmentProxy = environmentProxy; _fileProxy = fileProxy; _folderProxy = folderProxy; }
public ModCopier( IConverterOptions options, IFileProxy fileProxy, IFolderProxy folderProxy, IDirectoryHelper directoryHelper, IMessageBoxProxy messageBoxProxy, IDirectoryCopyHelper directoryCopyHelper, ISaveGameNameTranslator nameTranslator) { this.options = options; this.fileProxy = fileProxy; this.folderProxy = folderProxy; this.directoryHelper = directoryHelper; this.messageBoxProxy = messageBoxProxy; this.directoryCopyHelper = directoryCopyHelper; this.nameTranslator = nameTranslator; }
public NUnitToXUnitVisitor(IConverterOptions options) { _options = options; }
public ConvertSaveOperation(IConverterOptions options, IFileProxy fileProxy, IDirectoryHelper directoryHelper) { this.options = options; this.fileProxy = fileProxy; this.directoryHelper = directoryHelper; }
/// <summary> /// Initializes a new instance of the <see cref="OpenFileCommand" /> class. /// </summary> /// <param name="eventAggregator"></param> /// <param name="options">The options.</param> public OpenFileCommand(IEventAggregator eventAggregator, IConverterOptions options) : base(eventAggregator, options) { }
public WelcomeViewModel(IEventAggregator eventAggregator, IConverterOptions options) : base(eventAggregator, options) { }
/// <summary> /// Initializes a new instance of the <see cref="CommandBase" /> class. /// </summary> /// <param name="eventAggregator">The event aggregator</param> /// <param name="options">The object holding all converter preferences set by the user</param> protected CommandBase(IEventAggregator eventAggregator, IConverterOptions options) { EventAggregator = eventAggregator; Options = options; }
/// <summary> /// Initializes a new instance of the <see cref="OpenFolderCommand" /> class. /// </summary> /// <param name="eventAggregator"></param> /// <param name="options">The options.</param> public OpenFolderCommand(IEventAggregator eventAggregator, IConverterOptions options) : base(eventAggregator, options) { }
/// <summary> /// Initializes a new instance of the <see cref="PathPickerViewModel" /> class. /// </summary> /// <param name="options">The options.</param> /// <param name="view">The view.</param> public PathPickerViewModel(IEventAggregator eventAggregator, IConverterOptions options) : base(eventAggregator, options) { }
/// <summary> /// Initializes a new instance of the <see cref="OldAsyncCommandBase" /> class. /// </summary> /// <param name="eventAggregator"></param> /// <param name="options"></param> protected OldAsyncCommandBase(IEventAggregator eventAggregator, IConverterOptions options) { Options = options; worker = new BackgroundWorker(); EventAggregator = eventAggregator; }
protected StepViewModelBase(IEventAggregator eventAggregator, IConverterOptions options) : base(eventAggregator) { Options = options; //this.Load(null); }
/// <summary> /// Initializes a new instance of the <see cref="PreferencesViewModel" /> class. /// </summary> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="options">The options.</param> /// <param name="category">The category.</param> public PreferencesViewModel(IEventAggregator eventAggregator, IConverterOptions options, IPreferenceCategory category) : base(eventAggregator, options) { Category = category; }