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

            Process.Start(processStartInfo);
        }
예제 #2
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));
        }