public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant, IEventAggregator eventAggregator, IDispatcher dispatcher) { _eventAggregator = eventAggregator; _dispatcher = dispatcher; DataContext = vm; UpdateAssistant = updateAssistant; InitializeComponent(); hightlightColorRegistration.RegisterHighlightColorResource(this); }
public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant) { _mainShellViewModel = vm; UpdateAssistant = updateAssistant; DataContext = _mainShellViewModel; _mainShellViewModel.Init(Close); InitializeComponent(); hightlightColorRegistration.RegisterHighlightColorResource(this); }
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)); }
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 void Setup() { var commandLocator = Substitute.For <ICommandLocator>(); _navigateMainTabCommand = Substitute.For <IMacroCommand>(); commandLocator.GetMacroCommand().Returns(_navigateMainTabCommand); _navigateMainTabCommand.AddCommand <ICommand>().Returns(_navigateMainTabCommand); _eventAggregator = new EventAggregator(); _updateAssistant = Substitute.For <IUpdateAssistant>(); ViewModel = new MainShellViewModel(new DragAndDropEventHandler(Substitute.For <IFileConversionHandler>()), new TranslationUpdater(new TranslationFactory(), new ThreadManager()), new ApplicationNameProvider("Free"), new InteractionRequest(), new EventAggregator(), commandLocator, null, null, null, null, _updateAssistant, _eventAggregator); }
public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant, ViewCustomization viewCustomization) { _mainShellViewModel = vm; UpdateAssistant = updateAssistant; DataContext = _mainShellViewModel; _mainShellViewModel.Init(Close); InitializeComponent(); hightlightColorRegistration.RegisterHighlightColorResource(this); if (viewCustomization.ApplyCustomization) { Title = Title + " " + viewCustomization.MainWindowText; } }
public MaybePipedApplicationStarter(ISettingsManager settingsManager, IUpdateAssistant updateAssistant, ICheckAllStartupConditions startupConditions, IThreadManager threadManager, IPipeServerManager pipeServerManager, IJobInfoQueueManager jobInfoQueueManager, IJobInfoQueue jobInfoQueue, IStaticPropertiesHack staticPropertiesHack, IPdfCreatorCleanUp cleanUp, ISpooledJobFinder spooledJobFinder) { StartupConditions = startupConditions; _jobInfoQueue = jobInfoQueue; _cleanUp = cleanUp; _spooledJobFinder = spooledJobFinder; _settingsManager = settingsManager; _updateAssistant = updateAssistant; _threadManager = threadManager; _pipeServerManager = pipeServerManager; _jobInfoQueueManager = jobInfoQueueManager; staticPropertiesHack.SetStaticProperties(); }
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); settingsProvider.SettingsChanged += (sender, args) => { RaisePropertyChanged(nameof(CurrentUpdateInterval)); RaisePropertyChanged(nameof(DisplayUpdateWarning)); }; }
public GeneralTabViewModel(ILanguageProvider languageProvider, TranslationHelper translationHelper, ITranslator translator, IUpdateAssistant updateAssistant, IUacAssistant uacAssistant, IInteractionInvoker invoker, IOsHelper osHelper, IProcessStarter processStarter) { Translator = translator; _updateAssistant = updateAssistant; _translationHelper = translationHelper; _uacAssistant = uacAssistant; _invoker = invoker; _osHelper = osHelper; _processStarter = processStarter; Languages = languageProvider.GetAvailableLanguages().ToList(); UpdateCheckCommand = new DelegateCommand(ExecuteUpdateCheck); PreviewTranslationCommand = new DelegateCommand(ExecutePreviewTranslation); OnSettingsChanged(); }
public GeneralTabViewModel(ILanguageProvider languageProvider, TranslationHelper translationHelper, IUpdateAssistant updateAssistant, IUacAssistant uacAssistant, IInteractionInvoker invoker, IOsHelper osHelper, IProcessStarter processStarter, GeneralTabTranslation translation) { _translation = translation; _updateAssistant = updateAssistant; _translationHelper = translationHelper; _uacAssistant = uacAssistant; _invoker = invoker; _osHelper = osHelper; _processStarter = processStarter; Languages = languageProvider.GetAvailableLanguages().ToList(); AddExplorerIntegrationCommand = new DelegateCommand(ExecuteAddToExplorerContextMenu); RemoveExplorerIntegrationCommand = new DelegateCommand(ExecuteFromExplorerContextMenu); UpdateCheckCommand = new DelegateCommand(ExecuteUpdateCheck); PreviewTranslationCommand = new DelegateCommand(ExecutePreviewTranslation); OnSettingsChanged(); }
public void Setup() { _versionHelper = Substitute.For <IVersionHelper>(); _navigateMainTabCommand = Substitute.For <IMacroCommand>(); var macroBuilder = Substitute.For <IMacroCommandBuilder>(); macroBuilder.AddCommand <ICommand>().Returns(macroBuilder); macroBuilder.Build().Returns(_navigateMainTabCommand); var commandLocator = Substitute.For <ICommandLocator>(); commandLocator.CreateMacroCommand().Returns(macroBuilder); _eventAggregator = new EventAggregator(); _updateAssistant = Substitute.For <IUpdateAssistant>(); _usageStatisticsProvider = Substitute.For <ICurrentSettings <UsageStatistics> >(); ViewModel = new MainShellViewModel(new DragAndDropEventHandler(Substitute.For <IFileConversionAssistant>()), new TranslationUpdater(new TranslationFactory(), new ThreadManager()), new ApplicationNameProvider("Free"), new InteractionRequest(), new EventAggregator(), commandLocator, null, null, null, _updateAssistant, _eventAggregator, Substitute.For <IStartupActionHandler>(), _usageStatisticsProvider, _versionHelper); }
public UpdateHintViewModel( IUpdateAssistant updateAssistant, IProcessStarter processStarter, ITranslationUpdater translationUpdater, IEventAggregator eventAggregator, IVersionHelper versionHelper, IUpdateLauncher updateLauncher, IDispatcher dispatcher) : base(translationUpdater) { _updateAssistant = updateAssistant; _processStarter = processStarter; _eventAggregator = eventAggregator; _updateLauncher = updateLauncher; _dispatcher = dispatcher; WhatsNewUrl = Urls.PDFCreatorWhatsNewUrl; SetCurrentDateFormat(); AvailabeVersionText = Translation.GetNewUpdateMessage(updateAssistant.OnlineVersion.Version.ToString(3), versionHelper.ApplicationVersion.ToString(3), CurrentVersionDate); }
public MainShellViewModel(DragAndDropEventHandler dragAndDrop, ITranslationUpdater translation, ApplicationNameProvider applicationName, IInteractionRequest interactionRequest, IEventAggregator aggregator, ICommandLocator commandsLocator, IDispatcher dispatcher, IRegionManager regionManager, IWelcomeSettingsHelper welcomeSettingsHelper, IGpoSettings gpoSettings, IUpdateAssistant updateAssistant, IEventAggregator eventAggregator) : base(translation) { _aggregator = aggregator; _commandsLocator = commandsLocator; ApplicationName = applicationName; InteractionRequest = interactionRequest; _dispatcher = dispatcher; _regionManager = regionManager; _welcomeSettingsHelper = welcomeSettingsHelper; ShowUpdate = updateAssistant.IsUpdateAvailable(); GpoSettings = gpoSettings; NavigateCommand = commandsLocator?.GetMacroCommand() .AddCommand <SaveAndContinueEvaluationCommand>() .AddCommand <SaveApplicationSettingsChangesCommand>() .AddCommand <NavigateMainTabCommand>(); DragEnterCommand = new DelegateCommand <DragEventArgs>(dragAndDrop.HandleDragEnter); DragDropCommand = new DelegateCommand <DragEventArgs>(dragAndDrop.HandleDropEvent); aggregator.GetEvent <NavigateToHomeEvent>().Subscribe(OnSettingsChanged); aggregator.GetEvent <NavigateMainTabEvent>().Subscribe(OnMainShellNavigated); aggregator.GetEvent <ForceMainShellNavigation>().Subscribe(OnForcedNavigation); aggregator.GetEvent <CloseMainWindowEvent>().Subscribe(OnCloseMainWindow); ShowUpdate = updateAssistant.ShowUpdate; eventAggregator.GetEvent <SetShowUpdateEvent>().Subscribe(value => { ShowUpdate = updateAssistant.ShowUpdate; }, true); }
public DownloadUpdateStartupAction(IUpdateAssistant updateAssistant) { _updateAssistant = updateAssistant; }
public InteractiveWorkflowManagerFactory(IWorkflowNavigationHelper workflowNavigationHelper, ISignaturePasswordCheck signaturePasswordCheck, IUpdateAssistant updateAssistant) { _workflowNavigationHelper = workflowNavigationHelper; _signaturePasswordCheck = signaturePasswordCheck; _updateAssistant = updateAssistant; }
public InteractiveWorkflowManagerFactoryWithPlusHintStep(IWorkflowNavigationHelper workflowNavigationHelper, IPlusHintHelper plusHintHelper, ISignaturePasswordCheck signaturePasswordCheck, IUpdateAssistant updateAssistant) : base(workflowNavigationHelper, signaturePasswordCheck, updateAssistant) { _workflowNavigationHelper = workflowNavigationHelper; _plusHintHelper = plusHintHelper; }
public UpdateHintStep(IUpdateAssistant updateAssistant) { _updateAssistant = updateAssistant; }