예제 #1
0
        private void SuggestUpdate()
        {
            var dlg = new VersionUpdatePrompt();

            dlg.WhatsNew       = _latest.SelectSingleNode("Notes").InnerText;
            dlg.LatestVersion  = _latest.SelectSingleNode("Version").InnerText;
            dlg.CurrentVersion = _versionInfo.ProductVersion;

            if (dlg.ShowDialog() == DialogResult.Yes)
            {
                DoUpdate();
            }
        }
예제 #2
0
        private void SuggestUpdate()
        {
            Utils.Log.Debug("Suggesting Update to user...");
            VersionUpdatePrompt dlg = new VersionUpdatePrompt();

            dlg.WhatsNew       = _latest.SelectSingleNode("Notes").InnerText;
            dlg.LatestVersion  = _latest.SelectSingleNode("Version").InnerText;
            dlg.CurrentVersion = _versionInfo.ProductVersion;

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
            {
                DoUpdate();
            }
            else
            {
                Utils.Log.Debug("User declined update");
            }
        }
        private void SuggestUpdate()
        {
            var dlg = new VersionUpdatePrompt();

            dlg.WhatsNew = _latest.SelectSingleNode("Notes").InnerText;
            dlg.LatestVersion = _latest.SelectSingleNode("Version").InnerText;
            dlg.CurrentVersion = _versionInfo.ProductVersion;

            if (dlg.ShowDialog() == DialogResult.Yes)
                DoUpdate();
        }
예제 #4
0
        private void SuggestUpdate()
        {
            Utils.Log.Debug("Suggesting Update to user...");
            VersionUpdatePrompt dlg = new VersionUpdatePrompt();

            dlg.WhatsNew = _latest.SelectSingleNode("Notes").InnerText;
            dlg.LatestVersion = _latest.SelectSingleNode("Version").InnerText;
            dlg.CurrentVersion = _versionInfo.ProductVersion;

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                DoUpdate();
            else
                Utils.Log.Debug("User declined update");
        }