private void ShowLicenseMenuItemClick(object sender, RoutedEventArgs e) { LicenseWindow licenseWindow = new LicenseWindow(); licenseWindow.Owner = this; licenseWindow.Show(); }
private void OnLicenseMenuItemClick(object sender, RoutedEventArgs e) { Window window = new LicenseWindow(); window.Owner = this; window.ShowDialog(); }
private void ShowLicenseButton_Click(object sender, RoutedEventArgs e) { if (licenseWindow == null) { licenseWindow = new LicenseWindow(); } licenseWindow.Show(); }
private void ShowLicensingWindow(ScutexLicense scutexLicense) { ThreadRunner runner = new ThreadRunner(); runner.RunInSTA( delegate { LicenseWindow window = new LicenseWindow(this, scutexLicense, _clientLicenseService.GetClientLicense()); window.Show(); System.Windows.Threading.Dispatcher.Run(); }); }
private void CheckLicensing() { RenewActivation(); TerminalServerCheck(); var edition = EditionFactory.Instance.Edition; if (!edition.IsLicenseValid) { Logger.Error("Invalid or expired license."); var editionWithVersionNumber = edition.Name + " " + edition.VersionHelper.FormatWithThreeDigits(); if (!SettingsHelper.GpoSettings.HideLicenseTab) { var caption = edition.Name; var message = TranslationHelper.Instance.TranslatorInstance.GetFormattedTranslation("Program", "LicenseInvalid", "Your license for \"{0}\" is invalid or has exprired.\r\n\r\nDo you want to check your license now?\r\nElse PDFCreator will shutdown.", editionWithVersionNumber); var result = MessageWindow.ShowTopMost(message, caption, MessageWindowButtons.YesNo, MessageWindowIcon.Exclamation); if (result == MessageWindowResponse.No) { Shutdown(3); } LicenseWindow.ShowDialogTopMost(); //Check latest edition for validity if (EditionFactory.Instance.Edition.IsLicenseValid) { return; } Shutdown(4); } else { var caption = edition.Name; var message = TranslationHelper.Instance.TranslatorInstance.GetFormattedTranslation("Program", "LicenseInvalidGpoHideLicenseTab", "Your license for \"{0}\" has exprired.\r\nPlease contact your administrator.\r\nPDFCreator will shutdown.", editionWithVersionNumber); MessageWindow.ShowTopMost(message, caption, MessageWindowButtons.OK, MessageWindowIcon.Exclamation); Shutdown(5); } } }
private void Install([NotNull] object sender, [NotNull] RoutedEventArgs e) { Debug.ArgumentNotNull(sender, nameof(sender)); Debug.ArgumentNotNull(e, nameof(e)); if (!string.IsNullOrEmpty(License)) { var d = new LicenseWindow(); d.Initialize(License); if (AppHost.Shell.ShowDialog(d) != true) { return; } } else if (AppHost.MessageBox("Are you sure you want to install the package?", Rocks.Resources.Confirmation, MessageBoxButton.OKCancel, MessageBoxImage.Question) != MessageBoxResult.OK) { return; } InstallButton.IsEnabled = false; ExecuteCompleted completed = delegate(string response, ExecuteResult result) { InstallButton.IsEnabled = true; if (!DataService.HandleExecute(response, result)) { return; } AppHost.MessageBox("The package has been installed.", Rocks.Resources.Information, MessageBoxButton.OK, MessageBoxImage.Information); if (IsClosed) { return; } this.Close(true); }; Site.DataService.ExecuteAsync("Packages.InstallPackage", completed, ServerFileName, string.Empty); }
private void OnShowLicense() { var window = new LicenseWindow(); window.ShowDialog(); }
private void DisplayLicense(object sender, RequestNavigateEventArgs e) { var licenseWindow = new LicenseWindow(); licenseWindow.ShowDialog(); }
private void licensingToolStripMenuItem_Click(object sender, EventArgs e) { LicenseWindow licensewindow = new LicenseWindow(); licensewindow.ShowDialog(); }