Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        private static void ShowPlusHintWindow()
        {
            var welcomeWindow = new PlusHintWindow();

            TopMostHelper.ShowDialogTopMost(welcomeWindow, true);
        }