public void ShowUpdateNeededUI() { if (versionInfo == null) { throw new InvalidOperationException("No version info. Call IsUpdateRequired() first"); } m_autoUpdator.ShowUpdateNeededUI(versionInfo, forceUpgrade); }
public void Update() { var autoUpdaterConfig = autoUpdater.GetApplicationConfig(); NetSparkleAppCastItem latestVersion; if (autoUpdater.IsUpdateRequired(autoUpdaterConfig, out latestVersion)) { autoUpdater.ShowUpdateNeededUI(latestVersion); } }
private void bgworkerUpdate_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { NetSparkleAppCastItem lastVersion = e.Result as NetSparkleAppCastItem; if (lastVersion != null) { m_autoUpdator.ShowUpdateNeededUI(lastVersion); } else { MessageBox.Show(I18n.L.T("AlreadyUpdated")); } btnUpdate.Enabled = true; btnUpdate.Text = I18n.L.T("CheckForUpdates"); }
/// <summary> /// Check for product updates. /// </summary> private void mainCheckForUpdates_Click(object sender, EventArgs e) { bool useBeta = Preferences.StandardPreferences.UseBeta; _sparkle = new Sparkle(useBeta ? Constants.BetaAppCastURL : Constants.AppCastURL); // Make sure INI file changes get preserved Preferences.Save(); NetSparkleConfiguration config = _sparkle.GetApplicationConfig(); NetSparkleAppCastItem latestVersion; Boolean bUpdateRequired = _sparkle.IsUpdateRequired(config, out latestVersion); _sparkle.installAndRelaunch += _sparkle_installAndRelaunch; if (bUpdateRequired) { _sparkle.ShowUpdateNeededUI(latestVersion); } else { MessageBox.Show(String.Format(Resources.LatestVersion, Program.VersionString), Resources.LatestVersionTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public void ShowUpdateUI() { _sparkle.ShowUpdateNeededUI(latestVersion); }
private static void OnSparkleOnUpdateDetectedShowWithToast(object sender, UpdateDetectedEventArgs args) { Startup.UpdateDetected = true; _sparkle.ShowUpdateNeededUI(args.LatestVersion, true); }
public void ShowUpdateUI() { _sparkle.ShowUpdateNeededUI(_updates); }
public void ShowUpdateUI() { _sparkle.ShowUpdateNeededUI(LatesVersion, false); }