public async void CBFullUpdateUpdateDetected(object sender, UpdateDetectedEventArgs e) { await Task.Run(() => { // RunFullUpdateUpdateStatusLabel.Text = "Found update..."; string UpdateLog = string.Format($"AppUpdaterService - CBFullUpdateUpdateDetected : [ Found update... ]"); SparkleInst.LogWriter.PrintMessage(UpdateLog); }); }
void _sparkle_updateDetected(object sender, UpdateDetectedEventArgs e) { DialogResult res = MessageBox.Show("Update detected, perform unattended", "Update", MessageBoxButtons.YesNoCancel); if (res == System.Windows.Forms.DialogResult.Yes) { e.NextAction = NextUpdateAction.PerformUpdateUnattended; } else if (res == System.Windows.Forms.DialogResult.Cancel) { e.NextAction = NextUpdateAction.ProhibitUpdate; } else { e.NextAction = NextUpdateAction.ShowStandardUserInterface; } }
static void _sparkle_updateDetected(object sender, UpdateDetectedEventArgs e) { DialogResult res = MessageBox.Show("Update detected, perform unattended", "Update", MessageBoxButtons.YesNoCancel); switch (res) { case DialogResult.Yes: e.NextAction = NextUpdateAction.PerformUpdateUnattended; break; case DialogResult.Cancel: e.NextAction = NextUpdateAction.ProhibitUpdate; break; default: e.NextAction = NextUpdateAction.ShowStandardUserInterface; break; } }
private static void OnSparkleOnUpdateDetectedShowWithoutToast(object sender, UpdateDetectedEventArgs args) { Startup.UpdateDetected = true; _sparkle.ShowUpdateNeededUI(args.LatestVersion, false); }
void updater_UpdateDetected(object sender, UpdateDetectedEventArgs e) { LatestVersion = e.LatestVersion.Version; ReleaseNotesLink = e.LatestVersion.ReleaseNotesLink; }
public void CBFullUpdateUpdateDetected(object sender, UpdateDetectedEventArgs e) { // TODO: RunFullUpdateUpdateStatusLabel.Text = "Found update..."; }