public DropboxSharedLinksViewModel(DropboxSharedLinksWindowTranslation translation, IProcessStarter processStarter) { _processStarter = processStarter; Translation = translation; OkCommand = new DelegateCommand(ExecuteOk); CopyCommand = new DelegateCommand(ExecuteCopy); }
public Browser(IProcessStarter processManager, IEnvironment environment, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider) { this.processManager = processManager; this.environment = environment; this.serviceProvider = serviceProvider; }
public void Setup() { _processStarter = Substitute.For <IProcessStarter>(); _pdfArchitectCheck = Substitute.For <IPdfArchitectCheck>(); _file = Substitute.For <IFile>(); _translationUpdater = new TranslationUpdater(new TranslationFactory(), new ThreadManager()); }
public QuickActionPrintWithPdfArchitectCommand(ITranslationUpdater translationUpdater, IPdfArchitectCheck architectCheck, IRecommendArchitectAssistant recommendArchitectAssistant, IRecommendArchitectUpgrade recommendArchitectUpgrade, IProcessStarter processStarter) : base(translationUpdater) { _architectCheck = architectCheck; _recommendArchitectAssistant = recommendArchitectAssistant; _recommendArchitectUpgrade = recommendArchitectUpgrade; _processStarter = processStarter; }
public ArchitectViewModel(IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater, IFile file) : base(translationUpdater) { _pdfArchitectCheck = pdfArchitectCheck; _processStarter = processStarter; _webLinkLauncher = webLinkLauncher; _file = file; }
public ScriptAction(IPath path, IProcessStarter processStarter, IFile file, IPathUtil pathUtil) { _path = path; _processStarter = processStarter; _file = file; _pathUtil = pathUtil; }
public CombatAssistantFeature(IWurmApi wurmApi, ILogger logger, FeatureSettings featureSettings, IProcessStarter processStarter) { if (wurmApi == null) { throw new ArgumentNullException("wurmApi"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (featureSettings == null) { throw new ArgumentNullException("featureSettings"); } if (processStarter == null) { throw new ArgumentNullException("processStarter"); } this.wurmApi = wurmApi; this.logger = logger; this.featureSettings = featureSettings; this.processStarter = processStarter; form = new CombatAssistantFeatureForm(wurmApi, logger, featureSettings, processStarter); }
public Browser(IProcessStarter processManager, IEnvironment environment, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider) { this.processManager = processManager; this.environment = environment; this.serviceProvider = serviceProvider; }
public SoundManagerForm([NotNull] ISoundManager soundManager, [NotNull] ISoundsLibrary soundsLibrary, IProcessStarter processStarter) { if (soundManager == null) { throw new ArgumentNullException("soundManager"); } if (soundsLibrary == null) { throw new ArgumentNullException("soundsLibrary"); } if (processStarter == null) { throw new ArgumentNullException("processStarter"); } this.soundManager = soundManager; this.soundsLibrary = soundsLibrary; this.processStarter = processStarter; InitializeComponent(); trackBarAdjustedVolume.Enabled = false; RefreshSoundsList(); soundsLibrary.SoundsChanged += SoundsLibraryOnSoundsChanged; this.Closed += (sender, args) => soundsLibrary.SoundsChanged -= SoundsLibraryOnSoundsChanged; }
public BusinessFeatureControlViewModel(EditionHelper editionHelper, IProcessStarter processStarter, ITranslationUpdater translationUpdater) : base(translationUpdater) { _processStarter = processStarter; ShowBusinessHint = editionHelper.ShowOnlyForPlusAndBusiness; RaisePropertyChanged(nameof(ShowBusinessHint)); }
public CombatAssistantFeatureForm(IWurmApi wurmApi, ILogger logger, FeatureSettings featureSettings, IProcessStarter processStarter) { if (wurmApi == null) { throw new ArgumentNullException(nameof(wurmApi)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } if (featureSettings == null) { throw new ArgumentNullException(nameof(featureSettings)); } if (processStarter == null) { throw new ArgumentNullException(nameof(processStarter)); } this.wurmApi = wurmApi; this.logger = logger; this.featureSettings = featureSettings; this.processStarter = processStarter; InitializeComponent(); var characters = wurmApi.Characters.All.Select(character => character.Name.Capitalized).Cast <object>().ToArray(); wurmCharacterCbox.Items.AddRange(characters); historicCharacterCbox.Items.AddRange(characters); }
public LoggingSettingViewModel(IInteractionInvoker invoker, IFile fileWrap, IProcessStarter processStarter, ISettingsManager settingsManager, ITranslationUpdater translationUpdater, ICurrentSettingsProvider settingsProvider, IGpoSettings gpoSettings) : base(settingsManager, translationUpdater, settingsProvider, gpoSettings) { _fileWrap = fileWrap; _processStarter = processStarter; _invoker = invoker; ShowLogFileCommand = new DelegateCommand(ShowLogFileExecute); ClearLogFileCommand = new DelegateCommand(ClearLogFileExecute); }
public AudioProcessingResultPageViewModel(IProcessStarter processStarter) { _processStarter = processStarter; DoAnotherCommand = new RelayCommand(OnDoAnother); OpenFileCommand = new RelayCommand(OnOpenFile); OpenContainingDirectoryCommand = new RelayCommand(OnOpenContainingDirectory); }
public BannerLoader(IDirectory directory, IFileCache fileCache, IProcessStarter processStarter, IUsageStatisticsSender usageStatisticsSender, IBannerMetricFactory bannerMetricFactory) { _directory = directory; _fileCache = fileCache; _processStarter = processStarter; _usageStatisticsSender = usageStatisticsSender; _bannerMetricFactory = bannerMetricFactory; }
// ReSharper disable once MemberCanBeProtected.Global public RecommendPdfArchitectWindowViewModel(ISoundPlayer soundPlayer, IProcessStarter processStarter, ITranslationUpdater translationUpdater) : base(translationUpdater) { _soundPlayer = soundPlayer; _processStarter = processStarter; InfoCommand = new DelegateCommand(ExecuteInfo); DownloadCommand = new DelegateCommand(ExecuteDownload); }
private NotificationViewModel(bool top, IProcessStarter procStarter) { ProcStarter = procStarter; FlyoutPosition = top ? Position.Top : Position.Bottom; CloseDelay = TimeSpan.FromSeconds(10); }
public UpdateHintViewModel(IUpdateAssistant updateAssistant, IProcessStarter processStarter, ITranslationUpdater translationUpdater, IEventAggregator eventAggregator) : base(translationUpdater) { _updateAssistant = updateAssistant; _processStarter = processStarter; _eventAggregator = eventAggregator; WhatsNewUrl = Urls.PDFCreatorWhatsNewUrl; AvailabeVersionText = Translation.GetNewUpdateMessage(updateAssistant.OnlineVersion.Version.ToString(3)); }
internal FileSystem(ILogger logger, FileSystemFactory factory, IProcessStarter starter) { ThrowHelper.IfNullThenThrow(() => factory); _logger = logger; _factory = factory; _pathFinder = _factory.PathFinder(this); _starter = starter; }
public OnlineBannerManager(BannerOptions options, IDirectory directory, IProcessStarter processStarter, IVersionHelper versionHelper, ILanguageProvider languageProvider, IHashUtil hashUtil, IUsageStatisticsSender usageStatisticsSender, IBannerMetricFactory bannerMetricFactory) { var cache = new FileCache(options); _versionHelper = versionHelper; _languageProvider = languageProvider; _bannerLoader = new BannerLoader(directory, cache, processStarter, usageStatisticsSender, bannerMetricFactory); _bannerDownloader = new BannerDownloader(cache, options, hashUtil, new WebClientDownloader()); }
public TerminalServerNotAllowedCondition(ITerminalServerDetection terminalServerDetection, ProgramTranslation translation, IInteractionInvoker interactionInvoker, IProcessStarter processStarter, ApplicationNameProvider applicationNameProvider) { _terminalServerDetection = terminalServerDetection; _translation = translation; _interactionInvoker = interactionInvoker; _processStarter = processStarter; _applicationNameProvider = applicationNameProvider; }
public SendBugReportForm([NotNull] IProcessStarter processStarter) { if (processStarter == null) { throw new ArgumentNullException("processStarter"); } this.processStarter = processStarter; InitializeComponent(); }
public Bash(ILogger logger, IProcessStarter processStarter) { this.logger = logger; commandSplitter = new CommandSplitter(); variableManager = new VariableManager(); commandParser = new SubcommandParser(); commandExecutor = new CommandExecutor(logger, processStarter); }
public WelcomeWindowViewModel(IProcessStarter processStarter, ButtonDisplayOptions buttonDisplayOptions, IUserGuideHelper userGuideHelper) { _processStarter = processStarter; _buttonDisplayOptions = buttonDisplayOptions; _userGuideHelper = userGuideHelper; WhatsNewCommand = new DelegateCommand(WhatsNewCommandExecute); FacebookCommand = new DelegateCommand(FacebookCommandExecute); GooglePlusCommand = new DelegateCommand(GooglePlusCommandExecute); }
public OfflineActivationUserControlViewModel(IProcessStarter process, IOfflineActivator offlineActivator, ITranslationUpdater translationUpdater) : base(translationUpdater) { _processStarter = process; _offlineActivator = offlineActivator; CancelCommand = new DelegateCommand(ExecuteCancelCommand); OkCommand = new DelegateCommand(OkCommandExecute, OkCommandCanExecute); OpenOfflineActivationUrlCommand = new DelegateCommand(OpenOfflineActivationUrlCommandExecute); }
// ReSharper disable once MemberCanBeProtected.Global public RecommendPdfArchitectWindowViewModel(ISoundPlayer soundPlayer, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater, IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, IFile file) : base(translationUpdater) { _soundPlayer = soundPlayer; _webLinkLauncher = webLinkLauncher; _pdfArchitectCheck = pdfArchitectCheck; _processStarter = processStarter; _file = file; InfoCommand = new DelegateCommand(ExecuteInfo); DownloadCommand = new DelegateCommand(ExecuteDownload); }
public PrioritySupportUrlOpenCommand(IProcessStarter processStarter, IVersionHelper versionHelper, ILicenseChecker licenseChecker, LicenseKeySyntaxChecker licenseKeySyntaxChecker, Configuration config) : base(processStarter) { _versionHelper = versionHelper; var edition = LicenseValidator.Interface.Tools.StringValueAttribute.GetStringValue(config.Product); var key = licenseChecker.GetSavedLicenseKey().ValueOr(""); var normKey = licenseKeySyntaxChecker.NormalizeLicenseKey(key); Url = BuildUrl(edition, normKey); }
public void Setup() { _profile = new ConversionProfile(); _file = Substitute.For <IFile>(); _file.Exists(Arg.Any <string>()).Returns(true); _processStarter = Substitute.For <IProcessStarter>(); _path = Substitute.For <IPath>(); _pathUtil = Substitute.For <IPathUtil>(); _scriptAction = new ScriptAction(_path, _processStarter, _file, _pathUtil); }
public UpdateIntervalSettingsViewModel(IUpdateAssistant updateAssistant, IProcessStarter processStarter, ICurrentSettingsProvider settingsProvider, IGpoSettings gpoSettings, ITranslationUpdater translationUpdater, IEventAggregator eventAggregator, IInteractionRequest interactionRequest) : base(translationUpdater, settingsProvider, gpoSettings) { _processStarter = processStarter; _updateAssistant = updateAssistant; _interactionRequest = interactionRequest; ShowUpdate = updateAssistant.ShowUpdate; _showUpdateEvent = eventAggregator.GetEvent <SetShowUpdateEvent>(); _showUpdateEvent.Subscribe(SetShowDialog); }
public Aria2cServer(IProcessStarter processStarter, IServerValidationRunner serverValidationRunner, Aria2cConfig config, Logger logger, IServerWatcher serverWatcher) { _processStarter = processStarter; _serverValidationRunner = serverValidationRunner; _config = config; _logger = logger; _serverWatcher = serverWatcher; }
public OpenViewerActionViewModel(ITranslator translator, IInteractionInvoker interactionInvoker, IPdfArchitectCheck pdfArchitectCheck, ISettingsProvider settingsProvider, IProcessStarter processStarter) { Translator = translator; _interactionInvoker = interactionInvoker; _pdfArchitectCheck = pdfArchitectCheck; _settingsProvider = settingsProvider; _processStarter = processStarter; DisplayName = Translator.GetTranslation("OpenViewerSettings", "DisplayName"); Description = Translator.GetTranslation("OpenViewerSettings", "Description"); }
public OfflineActivationViewModel(IProcessStarter process, IUserGuideHelper userGuideHelper, IOfflineActivator offlineActivator, OfflineActivationViewModelTranslation translation) { _processStarter = process; _userGuideHelper = userGuideHelper; _offlineActivator = offlineActivator; Translation = translation; _invalidLicenseKeySyntaxMessage = translation.InvalidLicenseKeySyntax; OkCommand = new DelegateCommand(OkCommandExecute, OkCommandCanExecute); OpenOfflineActivationUrlCommand = new DelegateCommand(OpenOfflineActivationUrlCommandExecute); ShowHelpCommand = new DelegateCommand <KeyEventArgs>(ShowHelpCommandExecute); }
public Compressor( ICompressProcessFactory processFactory, IFileDeleter fileDeleter, IProcessStarter processStarter, IArchiveSettings settings ) { _processFactory = processFactory; _fileDeleter = fileDeleter; _processStarter = processStarter; _settings = settings; }
public OfflineActivationViewModel(IProcessStarter process, IUserGuideHelper userGuideHelper, IActivationHelper activationHelper, ITranslator translator) { _processStarter = process; _userGuideHelper = userGuideHelper; _activationHelper = activationHelper; _invalidLicenseKeySyntaxMessage = translator.GetTranslation("OfflineActivationViewModel", "InvalidLicenseKeySyntax"); OkCommand = new DelegateCommand(OkCommandExecute, OkCommandCanExecute); OpenOfflineActivationUrlCommand = new DelegateCommand(OpenOfflineActivationUrlCommandExecute); ShowHelpCommand = new DelegateCommand <KeyEventArgs>(ShowHelpCommandExecute); }
public Browser(IProcessStarter processStarter, IEnvironment environment) { this.processStarter = processStarter; this.environment = environment; }
public BooLanguageBinding(IProcessStarter processStarter) { this.processStarter = processStarter; }