Ejemplo n.º 1
0
        private void upgradeToVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel.Text = "Loading all available versions.";

            AppVersionList versionList;

            if (ApplicationInstaller.PromptUpgrade(out versionList))
            {
                ApplicationInstallerForm installerForm = new ApplicationInstallerForm();
                installerForm.VersionList = versionList;

                installerForm.PopulateVersions();
                installerForm.Show(this);
            }
            else
            {
                toolStripStatusLabel.Text = "No versions avaialble for download.";
            }
        }
Ejemplo n.º 2
0
        private void CheckForUpdates()
        {
            toolStripStatusLabel.Text = "Checking for updates...";

            AppVersionList versionList;

            if (ApplicationInstaller.CheckForUpdates(out versionList))
            {
                ApplicationInstallerForm installerForm = new ApplicationInstallerForm();
                installerForm.VersionList = versionList;

                installerForm.PopulateLatestVersion();
                installerForm.Show(this);

                toolStripStatusLabel.Text = "New version found.";
            }
            else
            {
                toolStripStatusLabel.Text = "Current version is up to dated.";
            }
        }
Ejemplo n.º 3
0
        private void upgradeToVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel.Text = "Loading all available versions.";

            AppVersionList versionList;

            if (ApplicationInstaller.PromptUpgrade(out versionList))
            {
                ApplicationInstallerForm installerForm = new ApplicationInstallerForm();
                installerForm.VersionList = versionList;

                installerForm.PopulateVersions();
                installerForm.Show(this);
            }
            else
            {
                toolStripStatusLabel.Text = "No versions avaialble for download.";
            }
        }
Ejemplo n.º 4
0
        private void CheckForUpdates()
        {
            toolStripStatusLabel.Text = "Checking for updates...";

            AppVersionList versionList;

            if (ApplicationInstaller.CheckForUpdates(out versionList))
            {
                ApplicationInstallerForm installerForm = new ApplicationInstallerForm();
                installerForm.VersionList = versionList;

                installerForm.PopulateLatestVersion();
                installerForm.Show(this);

                toolStripStatusLabel.Text = "New version found.";
            }
            else
            {
                toolStripStatusLabel.Text = "Current version is up to dated.";
            }
        }