Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 2
0
        public static void ShowDialogTopMost()
        {
            var welcomeWindow = new WelcomeWindow();

            TopMostHelper.ShowDialogTopMost(welcomeWindow, true);
        }