Example #1
0
        public void Execute(object parameter)
        {
            var url = parameter as string ?? Url;

            try
            {
                _webLinkLauncher.Launch(url);
            }
            catch
            {
                // ignored
            }
        }
Example #2
0
        private void HandleClick(BannerDefinition banner, string url)
        {
            url = UrlHelper.AddUrlParameters(url, banner.LinkParameters);

            if (!string.IsNullOrWhiteSpace(banner.Campaign))
            {
                url = UrlHelper.AddUrlParameters(url, "cmp", banner.Campaign);
            }

            try
            {
                _webLinkLauncher.Launch(url);

                var metric = _bannerMetricFactory.BuildMetric(banner, BannerMetricType.Click);
                _usageStatisticsSender.SendAsync(metric);
            }
            catch { }
        }
        public StartupConditionResult Check()
        {
            if (!_terminalServerDetection.IsTerminalServer())
            {
                return(StartupConditionResult.BuildSuccess());
            }

            var errorMessage = $"It is not possible to run {_applicationNameProvider.ApplicationName} with installed Terminal Services. Please use the Terminal Server Edition instead.";

            _logger.Error(errorMessage);
            var caption = _applicationNameProvider.ApplicationName;
            var message = _translation.UsePDFCreatorTerminalServer;
            var result  = ShowMessage(message, caption, MessageOptions.MoreInfoCancel, MessageIcon.Exclamation);

            if (result == MessageResponse.MoreInfo)
            {
                _webLinkLauncher.Launch(Urls.PdfCreatorTerminalServerUrl);
            }

            return(StartupConditionResult.BuildErrorWithMessage((int)ExitCode.NotValidOnTerminalServer, errorMessage, showMessage: false));
        }
 private void ManageLicensesCommandExecute()
 {
     _webLinkLauncher.Launch(Urls.LicenseServerUrl);
 }
Example #5
0
 public Task LaunchUpdateAsync(IApplicationVersion version)
 {
     _webLinkLauncher.Launch(Urls.PDFCreatorDownloadUrl);
     return(Task.FromResult((object)null));
 }
 private void ExecuteInfo(object o)
 {
     _webLinkLauncher.Launch(Urls.ArchitectWebsiteUrl);
     FinishInteraction();
 }
 private void OpenOfflineActivationUrlCommandExecute(object obj)
 {
     _webLinkLauncher.Launch(OfflineActivationUrl);
 }
Example #8
0
        private void ShowEditionWebsiteExecute(object o)
        {
            var url = Urls.BusinessHintLink;

            _webLinkLauncher.Launch(url);
        }