示例#1
0
        private void TryDisplayReleaseNotesIfNecessary()
        {
            var versionProvider = new VersionProvider(this);

            Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion;
            Version currentVersion           = versionProvider.CurrentVersion;

            versionProvider.UpdateLastVersion();

            if (formerlyInstalledVersion == null || formerlyInstalledVersion < currentVersion)
            {
                var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion);
                DisplayReleaseNotes(creator.CreateHtml());
            }
        }
示例#2
0
        private void DisplayReleaseNotesIfNecessaryProc()
        {
            var versionProvider = new VersionProvider(this);

            Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion;
            Version currentVersion = versionProvider.CurrentVersion;

            versionProvider.UpdateLastVersion();

            if ((_generalOptions.ShowReleaseNotes || History.ForceShowReleaseNotes(formerlyInstalledVersion)) &&
                (formerlyInstalledVersion == null || formerlyInstalledVersion < currentVersion))
            {
                var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion, Donations.IsPreDonationsVersion(formerlyInstalledVersion));
                DisplayReleaseNotes(creator.CreateHtml());
            }
        }
示例#3
0
        private void DisplayReleaseNotesIfNecessaryProc()
        {
            var versionProvider = new VersionProvider(this);

            Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion;
            Version currentVersion           = versionProvider.CurrentVersion;

            versionProvider.UpdateLastVersion();

            if (!_generalOptions.ShowReleaseNotes ||
                (formerlyInstalledVersion != null && formerlyInstalledVersion >= currentVersion))
            {
                return;
            }

            var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion);

            DisplayReleaseNotes(creator.CreateHtml());
        }