Esempio n. 1
0
        private void changeLogOfNewVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AppUpdate.VersionInfo info             = AppUpdate.GetLatestVersionInfo();
            ProcessStartInfo      processStartInfo = new ProcessStartInfo(info.ChangeLogUrl);

            Process.Start(processStartInfo);
        }
Esempio n. 2
0
        private void changeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // ReSharper disable once RedundantAssignment
            var bookmark = AppUpdate.GetInstalledVersion().Replace(".", "");

#if DEBUG
            bookmark = AppUpdate.GetLatestVersionInfo().Version.Replace(".", "");
#endif
            Process.Start($"https://github.com/BlueBlock/Elucidate/wiki/ChangeLog#{bookmark}");
        }
Esempio n. 3
0
        private void installNewVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AppUpdate.VersionInfo info = AppUpdate.GetLatestVersionInfo();

            if (info?.DownloadUrl == null)
            {
                MessageBox.Show(
                    @"A problem was encountered trying to download the new version. Please try again later.",
                    @"New Version Download Failed",
                    MessageBoxButtons.OK);
                return;
            }

            Task.Run(() => AppUpdate.DownloadLatestVersionAsync(info.DownloadUrl));
        }