public PigLatinProcessor(IFIleLoader fileLoader, ITranslationFactory ruleFactory) { _fileLoader = fileLoader; _ruleFactory = ruleFactory; _fileLoader.ReadComplete += (object sender, EventArgs e) => { Console.Out.WriteLine("File finished"); }; _fileLoader.LineRead += _fileLoader_LineRead; }
public TitleTabViewModel(TitleTabTranslation translation, ITranslationFactory translationFactory) { TranslationFactory = translationFactory; _translation = translation; TitleAddCommand = new DelegateCommand(TitleAddCommandExecute); TitleDeleteCommand = new DelegateCommand(TitleDeleteCommandExecute, TitleDeleteCommandCanExecute); }
public NotificationService(ITranslationFactory translationFactory, IThreadManager threadManager, ICommandLocator commandLocator) { _translationFactory = translationFactory; _threadManager = threadManager; _openDocumentInExplorerCommand = commandLocator.GetCommand <QuickActionOpenExplorerLocationCommand>(); }
public BrowseFileCommandBuilder(IDirectoryHelper directoryHelper, IFileNameQuery fileNameQuery, IInteractionRequest interactionRequest, ITranslationFactory translationFactory) { _directoryHelper = directoryHelper; _fileNameQuery = fileNameQuery; _interactionRequest = interactionRequest; _translationFactory = translationFactory; }
public WorkflowEditorCommand(ISelectedProfileProvider selectedProfileProvider, IInteractionRequest interactionRequest, ITranslationFactory translationFactory, IEventAggregator eventAggregator) { _selectedProfileProvider = selectedProfileProvider; _interactionRequest = interactionRequest; _translationFactory = translationFactory; _eventAggregator = eventAggregator; }
public ErrorNotifierInteractive(ITranslationFactory translationFactory, IInteractionInvoker interactionInvoker) { _translationFactory = translationFactory; _interactionInvoker = interactionInvoker; UpdateTranslation(translationFactory); translationFactory.TranslationChanged += (sender, args) => UpdateTranslation(translationFactory); }
public InteractiveProfileChecker(IProfileChecker profileChecker, IInteractionRequest interactionRequest, IInteractionInvoker interactionInvoker, ITranslationFactory translationFactory) { _profileChecker = profileChecker; _interactionRequest = interactionRequest; _interactionInvoker = interactionInvoker; _translationFactory = translationFactory; }
public AutoUpdateLauncher(ITranslationFactory translationFactory, IInteractionInvoker interactionInvoker, IHashUtil hashUtil, IThreadManager threadManager, ApplicationNameProvider applicationNameProvider) { UpdateTranslation(translationFactory); translationFactory.TranslationChanged += (sender, args) => UpdateTranslation(translationFactory); _interactionInvoker = interactionInvoker; _hashUtil = hashUtil; _threadManager = threadManager; _applicationNameProvider = applicationNameProvider; }
public InteractiveFileExistsChecker( ITranslationFactory translationFactory, IFile file, IInteractionRequest interactionRequest) { _translationFactory = translationFactory; _file = file; _interactionRequest = interactionRequest; }
private void UpdateTranslations(ITranslationFactory translationFactory) { _translation = translationFactory.UpdateOrCreateTranslation(_translation); foreach (var updateTranslationFunction in _updateTranslationFunctions) { updateTranslationFunction(_translation); } }
public LicenseCondition(ITranslationFactory translationFactory, ILicenseChecker licenseChecker, IInteractionInvoker interactionInvoker, IVersionHelper versionHelper, ApplicationNameProvider applicationNameProvider, IGpoSettings gpoSettings) { _translation = translationFactory.CreateTranslation <ProgramTranslation>(); _licenseChecker = licenseChecker; _interactionInvoker = interactionInvoker; _versionHelper = versionHelper; _applicationNameProvider = applicationNameProvider; _gpoSettings = gpoSettings; }
public CachedTranslationFactory(ITranslationFactory baseTranslationFactory) { baseTranslationFactory.TranslationChanged += (sender, args) => { ClearCache(); TranslationChanged?.Invoke(this, args); }; _baseTranslationFactory = baseTranslationFactory; }
public void Initialize_UpdateOrCreateTranslationViaTranslationFactoryOfTranslationUpdater() { var translation = new TranslatableCommandBaseTestTranslation(); _translationFactory = Substitute.For <ITranslationFactory>(); _translationFactory.UpdateOrCreateTranslation(Arg.Any <TranslatableCommandBaseTestTranslation>()).Returns(translation); var translationUpdater = new TranslationUpdater(_translationFactory, new ThreadManager()); _translatableCommandBase = new TranslatableCommandBaseTestClass(translationUpdater); Assert.AreSame(translation, _translatableCommandBase.GetTranslation()); }
public AutoUpdateLauncher(ITranslationFactory translationFactory, IInteractionInvoker interactionInvoker, IInteractionRequest interactionRequest, IHashUtil hashUtil, IThreadManager threadManager, ApplicationNameProvider applicationNameProvider, IUpdateDownloader updateDownloader, IEventAggregator EventAggregator) { UpdateTranslation(translationFactory); translationFactory.TranslationChanged += (sender, args) => UpdateTranslation(translationFactory); _interactionRequest = interactionRequest; _interactionInvoker = interactionInvoker; _hashUtil = hashUtil; _threadManager = threadManager; _applicationNameProvider = applicationNameProvider; _updateDownloader = updateDownloader; _eventAggregator = EventAggregator; }
public MainWindowViewModel(ISettingsManager settingsManager, IInteractionInvoker interactionInvoker, IUserGuideHelper userGuideHelper, IVersionHelper versionHelper, DragAndDropEventHandler dragAndDrop, WelcomeCommand welcomeCommand, ApplicationNameProvider applicationNameProvider, MainWindowTranslation mainWindowTranslation, ITranslationFactory translationFactory) { _settingsManager = settingsManager; _interactionInvoker = interactionInvoker; _userGuideHelper = userGuideHelper; _versionHelper = versionHelper; _applicationNameProvider = applicationNameProvider; _translationFactory = translationFactory; ApplicationSettingsCommand = new DelegateCommand(ExecuteApplicationSettingsCommand); ProfileSettingsCommand = new DelegateCommand(ExecuteProfileSettings); WelcomeCommand = welcomeCommand; Translation = mainWindowTranslation; AboutWindowCommand = new DelegateCommand(ExecuteAboutWindow); HelpCommand = new DelegateCommand <KeyEventArgs>(ExecuteHelpCommand); DragEnterCommand = new DelegateCommand <DragEventArgs>(dragAndDrop.HandleDragEnter); DragDropCommand = new DelegateCommand <DragEventArgs>(dragAndDrop.HandleDropEvent); _settingsProvider = _settingsManager.GetSettingsProvider(); ApplicationSettingsEnabled = _settingsProvider.GpoSettings?.DisableApplicationSettings == false; }
public ActionFacadeDescriptionHelper(ICurrentSettings <Accounts> accountSettingsProvider, ISelectedProfileProvider selectedProfileProvider, IScriptActionHelper scriptActionHelper, ITokenHelper tokenHelper, ITranslationFactory translationFactory, ICurrentSettings <ObservableCollection <ConversionProfile> > profilesProvider) { _accountSettingsProvider = accountSettingsProvider; _selectedProfileProvider = selectedProfileProvider; _translationFactory = translationFactory; _profilesProvider = profilesProvider; _scriptActionHelper = scriptActionHelper; if (tokenHelper != null) { TokenReplacer = tokenHelper.TokenReplacerWithPlaceHolders; } _descriptions = new Dictionary <Type, Func <IProfileSetting, string> > { { typeof(CoverPage), GetCoverActionDescription }, { typeof(BackgroundPage), GetBackgroundActionDescription }, { typeof(AttachmentPage), GetAttachmentActionDescription }, { typeof(Stamping), GetStampActionDescription }, { typeof(Printing), GetPrintActionDescription }, { typeof(Ftp), GetFtpActionDescription }, { typeof(EmailSmtpSettings), GetSmtpActionDescription }, { typeof(DropboxSettings), GetDropboxActionDescription }, { typeof(HttpSettings), GetHttpActionDescription }, { typeof(Signature), GetSignatureActionDescription }, { typeof(EmailClientSettings), GetEmailActionDescription }, { typeof(Security), GetEncryptionActionDescription }, { typeof(Scripting), GetSecurityActionDescription }, { typeof(CustomScript), GetCustomScriptDescription }, { typeof(UserTokens), GetUserTokenDescription }, { typeof(ForwardToFurtherProfile), GetForwardToFurtherProfileDescription }, { typeof(Watermark), GetWatermarkActionDescription }, { typeof(OpenViewer), GetOpenViewerDescription } }; }
private void SetTokenViewModels(ITranslationFactory translationFactory) { _tokenReplacer = _tokenHelper.TokenReplacerWithPlaceHolders; SetTokenViewModels(); }
private void UpdateTranslation(ITranslationFactory translationFactory) { _translation = translationFactory.CreateTranslation <UpdateManagerTranslation>(); }
public SpoolerRunningCondition(ITranslationFactory translationFactory) { _translation = translationFactory.CreateTranslation <StartupTranslation>(); }
public RepairPrinterAssistant(IInteractionInvoker interactionInvoker, IPrinterHelper printerHelper, IShellExecuteHelper shellExecuteHelper, IFile file, IAssemblyHelper assemblyHelper, IPDFCreatorNameProvider nameProvider, ITranslationFactory iTranslationFactory) { _interactionInvoker = interactionInvoker; _printerHelper = printerHelper; _translation = iTranslationFactory.CreateTranslation <ApplicationTranslation>();; _shellExecuteHelper = shellExecuteHelper; _file = file; _assemblyHelper = assemblyHelper; _nameProvider = nameProvider; }
public DropboxHttpListener(ITranslationFactory translationFactory, IProcessStarter processStarter) { _processStarter = processStarter; _translation = translationFactory.CreateTranslation <DropboxTranslation>(); _httpListener = new HttpListener(); }
public TrialStartupCondition(ITranslationFactory translationFactory, IDateTimeProvider dateTimeProvider, ViewCustomization viewCustomization) { _dateTimeProvider = dateTimeProvider; _viewCustomization = viewCustomization; _translation = translationFactory.CreateTranslation <ProgramTranslation>(); }
private void UpdateTranslation <T>(ITranslationFactory translationFactory, ITranslatableViewModel <T> viewModel) where T : ITranslatable, new() { viewModel.Translation = translationFactory.UpdateOrCreateTranslation(viewModel.Translation); }
public TranslationUpdater(ITranslationFactory translationFactory, IThreadManager threadManager) { _translationFactory = translationFactory; translationFactory.TranslationChanged += (sender, args) => UpdateTranslations(); threadManager.CleanUpAfterThreadClosed += CleanUp; }
public TerminalServerNotAllowedCondition(ITerminalServerDetection terminalServerDetection, ITranslationFactory translationFactory, IInteractionInvoker interactionInvoker, IWebLinkLauncher webLinkLauncher, ApplicationNameProvider applicationNameProvider) { _terminalServerDetection = terminalServerDetection; _translation = translationFactory.CreateTranslation <ProgramTranslation>(); _interactionInvoker = interactionInvoker; _webLinkLauncher = webLinkLauncher; _applicationNameProvider = applicationNameProvider; }
public ErrorCodeInterpreter(ITranslationFactory translationFactory) { _errorCodeTranslations = translationFactory.CreateEnumTranslation <ErrorCode>(); }
private void SetTranslationAction(ITranslationFactory tf) { Translation = tf.UpdateOrCreateTranslation(Translation); }
public TerminalServerNotAllowedCondition(ITerminalServerDetection terminalServerDetection, ITranslationFactory translationFactory, IInteractionInvoker interactionInvoker, IProcessStarter processStarter, ApplicationNameProvider applicationNameProvider) { _terminalServerDetection = terminalServerDetection; _translation = translationFactory.CreateTranslation <ProgramTranslation>(); _interactionInvoker = interactionInvoker; _processStarter = processStarter; _applicationNameProvider = applicationNameProvider; }
public PrinterInstalledCondition(IRepairPrinterAssistant repairPrinterAssistant, ISettingsLoader settingsLoader, ITranslationFactory translationFactory) { _repairPrinterAssistant = repairPrinterAssistant; _settingsLoader = settingsLoader; _translation = translationFactory.CreateTranslation <ApplicationTranslation>(); }
public StaticPropertiesHack(IUserGuideHelper userGuideHelper, ILicenseChecker licenseChecker, ITranslationFactory translationFactory) { _userGuideHelper = userGuideHelper; _licenseChecker = licenseChecker; _translationFactory = translationFactory; }
public DatabaseLoader(ITranslationFactory translationFactory, IFileLoader fileLoader) { _translationFactory = translationFactory; _fileLoader = fileLoader; }