private void MainWindow_OnLoaded(object sender, RoutedEventArgs e) { TranslationHelper.Instance.TranslatorInstance.Translate(this); ApplicationNameText.Text = "PDFCreator " + VersionHelper.Instance.FormatWithTwoDigits(); // Apply company name for customized setups ApplyCustomization(); if (!EditionFactory.Instance.Edition.ShowWelcomeWindow) { return; } var welcomeSettingsHelper = new WelcomeSettingsHelper(); if (welcomeSettingsHelper.IsFirstRun()) { welcomeSettingsHelper.SetCurrentApplicationVersionAsWelcomeVersionInRegistry(); WelcomeWindow.ShowDialogTopMost(); } else { var plushelper = new PlusHintHelper(); if (plushelper.DisplayHint()) { PlusHintWindow.ShowTopMost(plushelper.CurrentJobCounter); } } }
public static void ShowDialogTopMost() { var welcomeWindow = new WelcomeWindow(); TopMostHelper.ShowDialogTopMost(welcomeWindow, true); }