Esempio n. 1
0
 public BusinessFeatureBadgeViewModel(EditionHelper editionHelper, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater)
     : base(translationUpdater)
 {
     _webLinkLauncher = webLinkLauncher;
     ShowBusinessHint = editionHelper.IsFreeEdition;
     RaisePropertyChanged(nameof(ShowBusinessHint));
 }
Esempio n. 2
0
 public ArchitectViewModel(IPdfArchitectCheck pdfArchitectCheck, IProcessStarter processStarter, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater, IFile file) : base(translationUpdater)
 {
     _pdfArchitectCheck = pdfArchitectCheck;
     _processStarter    = processStarter;
     _webLinkLauncher   = webLinkLauncher;
     _file = file;
 }
 // ReSharper disable once MemberCanBeProtected.Global
 public RecommendPdfArchitectWindowViewModel(ISoundPlayer soundPlayer, IWebLinkLauncher webLinkLauncher, ITranslationUpdater translationUpdater)
     : base(translationUpdater)
 {
     _soundPlayer     = soundPlayer;
     _webLinkLauncher = webLinkLauncher;
     InfoCommand      = new DelegateCommand(ExecuteInfo);
     DownloadCommand  = new DelegateCommand(ExecuteDownload);
 }
Esempio n. 4
0
 public BannerLoader(IDirectory directory, IFileCache fileCache, IWebLinkLauncher webLinkLauncher, IUsageStatisticsSender usageStatisticsSender, IBannerMetricFactory bannerMetricFactory)
 {
     _directory             = directory;
     _fileCache             = fileCache;
     _webLinkLauncher       = webLinkLauncher;
     _usageStatisticsSender = usageStatisticsSender;
     _bannerMetricFactory   = bannerMetricFactory;
 }
 public TerminalServerNotAllowedCondition(ITerminalServerDetection terminalServerDetection, ITranslationFactory translationFactory,
                                          IInteractionInvoker interactionInvoker, IWebLinkLauncher webLinkLauncher, ApplicationNameProvider applicationNameProvider)
 {
     _terminalServerDetection = terminalServerDetection;
     _translation             = translationFactory.CreateTranslation <ProgramTranslation>();
     _interactionInvoker      = interactionInvoker;
     _webLinkLauncher         = webLinkLauncher;
     _applicationNameProvider = applicationNameProvider;
 }
Esempio n. 6
0
        public OnlineBannerManager(BannerOptions options, IDirectory directory, IWebLinkLauncher webLinkLauncher, IVersionHelper versionHelper, ILanguageProvider languageProvider, IHashUtil hashUtil, IUsageStatisticsSender usageStatisticsSender, IBannerMetricFactory bannerMetricFactory)
        {
            var cache = new FileCache(options);

            _versionHelper    = versionHelper;
            _languageProvider = languageProvider;
            _bannerLoader     = new BannerLoader(directory, cache, webLinkLauncher, usageStatisticsSender, bannerMetricFactory);
            _bannerDownloader = new BannerDownloader(cache, options, hashUtil, new WebClientDownloader());
        }
        public OfflineActivationUserControlViewModel(IWebLinkLauncher webLinkLauncher, IOfflineActivator offlineActivator, ITranslationUpdater translationUpdater) : base(translationUpdater)
        {
            _webLinkLauncher  = webLinkLauncher;
            _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 LicenseExpirationReminderViewModel(ILicenseExpirationReminder licenseExpirationReminder, ICommandLocator commandLocator,
                                                  ITranslationUpdater translationUpdater, IWebLinkLauncher webLinkLauncher) : base(translationUpdater)
        {
            _licenseExpirationReminder = licenseExpirationReminder;
            _webLinkLauncher           = webLinkLauncher;

            ManageLicensesCommand = commandLocator?.CreateMacroCommand()
                                    .AddCommand(new DelegateCommand(_ => ManageLicensesCommandExecute()))
                                    .AddCommand(new DelegateCommand(_ => SetReminderForLicenseExpiration()))
                                    .Build();

            ShowLicenseExpireReminder = _licenseExpirationReminder.IsExpirationReminderDue();

            RemindMeLaterCommand = new DelegateCommand(o => SetReminderForLicenseExpiration());
        }
Esempio n. 10
0
 public SimpleUpdateLauncher(IWebLinkLauncher webLinkLauncher)
 {
     _webLinkLauncher = webLinkLauncher;
 }
Esempio n. 11
0
 public UrlOpenCommand(IWebLinkLauncher webLinkLauncher)
 {
     _webLinkLauncher = webLinkLauncher;
 }
 public DisabledPrioritySupportUrlOpenCommand(IWebLinkLauncher webLinkLauncher, IVersionHelper versionHelper)
     : base(webLinkLauncher)
 {
     Url = "";
 }