Ejemplo n.º 1
0
 public PrinterActionsAssistant(ITranslator translator, IInteractionInvoker invoker, IPrinterHelper printerHelper, IUacAssistant uacAssistant)
 {
     _translator    = translator;
     _invoker       = invoker;
     _printerHelper = printerHelper;
     _uacAssistant  = uacAssistant;
 }
Ejemplo n.º 2
0
 public PrinterActionsAssistant(IInteractionInvoker invoker, IPrinterHelper printerHelper, IUacAssistant uacAssistant, PrinterActionsAssistantTranslation translation)
 {
     _invoker       = invoker;
     _printerHelper = printerHelper;
     _uacAssistant  = uacAssistant;
     _translation   = translation;
 }
 public PrinterActionsAssistant(IPrinterHelper printerHelper, IUacAssistant uacAssistant, ITranslationUpdater translationUpdater, IInteractionRequest interactionRequest)
     : base(translationUpdater)
 {
     _printerHelper = printerHelper;
     _uacAssistant = uacAssistant;
     _interactionRequest = interactionRequest;
 }
Ejemplo n.º 4
0
 public ExplorerIntegrationSettingsViewModel(IUacAssistant uacAssistant, IOsHelper osHelper, ITranslationUpdater translationUpdater, ICurrentSettingsProvider settingsProvider, IGpoSettings gpoSettings) :
     base(translationUpdater, settingsProvider, gpoSettings)
 {
     _uacAssistant = uacAssistant;
     _osHelper     = osHelper;
     AddExplorerIntegrationCommand    = new DelegateCommand(ExecuteAddToExplorerContextMenu);
     RemoveExplorerIntegrationCommand = new DelegateCommand(ExecuteRemoveFromExplorerContextMenu);
 }
Ejemplo n.º 5
0
        public void Setup()
        {
            _printerHelper      = Substitute.For <IPrinterHelper>();
            _uacAssistant       = Substitute.For <IUacAssistant>();
            _interactionRequest = Substitute.For <IInteractionRequest>();

            PrinterActionsAssistant = new PrinterActionsAssistant(_printerHelper, _uacAssistant, new DesignTimeTranslationUpdater(), _interactionRequest);
            ;
        }
        public StoreLicenseForAllUsersWindowViewModel(ApplicationNameProvider applicationNameProvider, IOsHelper osHelper, IUacAssistant uacAssistant, IInteractionInvoker interactionInvoker, ITranslator translator)
        {
            _osHelper           = osHelper;
            _uacAssistant       = uacAssistant;
            _interactionInvoker = interactionInvoker;
            _translator         = translator;
            ProductName         = applicationNameProvider.ApplicationName;

            StoreLicenseInLmCommand = new DelegateCommand(StoreLicenseInLmCommandExecute);
        }
Ejemplo n.º 7
0
 public RestorePrinterAppStart(ICheckAllStartupConditions checkAllStartupConditions, IPrinterProvider printerProvider,
                               IUacAssistant uacAssistant, IInstallationPathProvider installationPathProvider,
                               ISharedSettingsLoader sharedSettingsLoader) : base(checkAllStartupConditions)
 {
     _uacAssistant             = uacAssistant;
     _printerProvider          = printerProvider;
     _installationPathProvider = installationPathProvider;
     _sharedSettingsLoader     = sharedSettingsLoader;
     SkipStartupConditionCheck = true;
 }
Ejemplo n.º 8
0
        public StoreLicenseForAllUsersWindowViewModel(ApplicationNameProvider applicationNameProvider, IOsHelper osHelper, IUacAssistant uacAssistant, IInteractionRequest interactionRequest, ITranslationUpdater translationUpdater)
        {
            _osHelper           = osHelper;
            _uacAssistant       = uacAssistant;
            _interactionRequest = interactionRequest;
            ProductName         = applicationNameProvider.ApplicationNameWithEdition;

            StoreLicenseInLmCommand = new DelegateCommand(StoreLicenseInLmCommandExecute);
            CloseCommand            = new DelegateCommand(o => FinishInteraction());

            translationUpdater.RegisterAndSetTranslation(tf => Translation = tf.UpdateOrCreateTranslation(Translation));
        }
Ejemplo n.º 9
0
        public void Setup()
        {
            _osHelper     = Substitute.For <IOsHelper>();
            _uacAssistant = Substitute.For <IUacAssistant>();
            var applicationNameProvider = new ApplicationNameProvider(EditionName);

            _interactionRequest = new UnitTestInteractionRequest();
            _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionRequest, new DesignTimeTranslationUpdater());
            var interaction = new StoreLicenseForAllUsersInteraction("", "");

            _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction);
        }
        public void Setup()
        {
            _osHelper     = Substitute.For <IOsHelper>();
            _uacAssistant = Substitute.For <IUacAssistant>();
            var applicationNameProvider = new ApplicationNameProvider(ProductName);

            _interactionInvoker = Substitute.For <IInteractionInvoker>();
            _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionInvoker, new StoreLicenseForAllUsersWindowTranslation());
            var interaction = new StoreLicenseForAllUsersInteraction("", "");

            _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction);
        }
        public void Setup()
        {
            _osHelper     = Substitute.For <IOsHelper>();
            _uacAssistant = Substitute.For <IUacAssistant>();
            var applicationNameProvider = new ApplicationNameProvider(ProductName);

            _interactionInvoker = Substitute.For <IInteractionInvoker>();
            var translator = Substitute.For <ITranslator>();

            translator.GetTranslation("StoreLicenseForAllUsersWindowViewModel", "StoreForAllUsersSuccessful").Returns(SuccessfulText);
            translator.GetTranslation("StoreLicenseForAllUsersWindowViewModel", "StoreForAllUsersFailed").Returns(FailedText);
            _storeLicenseForAllUsersWindowViewModel = new StoreLicenseForAllUsersWindowViewModel(applicationNameProvider, _osHelper, _uacAssistant, _interactionInvoker, translator);
            var interaction = new StoreLicenseForAllUsersInteraction();

            _interactionHelper = new InteractionHelper <StoreLicenseForAllUsersInteraction>(_storeLicenseForAllUsersWindowViewModel, interaction);
        }
 public CreatorIniSettingsAssistant
 (
     IInteractionInvoker interactionInvoker,
     ITranslationUpdater translationUpdater,
     ISettingsManager settingsManager,
     IDataStorageFactory dataStorageFactory,
     IIniSettingsLoader iniSettingsLoader,
     IPrinterProvider printerProvider,
     IUacAssistant uacAssistant)
     : base(interactionInvoker, dataStorageFactory, translationUpdater)
 {
     _settingsManager    = settingsManager;
     _settingsProvider   = settingsManager.GetSettingsProvider();
     _dataStorageFactory = dataStorageFactory;
     _iniSettingsLoader  = iniSettingsLoader;
     _printerProvider    = printerProvider;
     _uacAssistant       = uacAssistant;
 }
        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();
        }
Ejemplo n.º 14
0
        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();
        }
Ejemplo n.º 15
0
 public void Setup()
 {
     _uacAssistant    = Substitute.For <IUacAssistant>();
     _printerProvider = Substitute.For <IPrinterProvider>();
 }
Ejemplo n.º 16
0
 public RestorePrinterAppStart(ICheckAllStartupConditions checkAllStartupConditions, IPrinterProvider printerProvider, IUacAssistant uacAssistant, IInstallationPathProvider installationPathProvider) : base(checkAllStartupConditions)
 {
     _uacAssistant             = uacAssistant;
     _printerProvider          = printerProvider;
     _installationPathProvider = installationPathProvider;
 }
 public CreatorIniSettingsAssistantHelper(IInteractionInvoker interactionInvoker, ITranslationUpdater translationUpdater, ISettingsManager settingsManager,
                                          IDataStorageFactory dataStorageFactory, IIniSettingsLoader iniSettingsLoader, IPrinterProvider printerProvider,
                                          IUacAssistant uacAssistant) :
     base(interactionInvoker, translationUpdater, settingsManager, dataStorageFactory, iniSettingsLoader, printerProvider, uacAssistant)
 {
 }