Example #1
0
 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);
     });
 }
Example #2
0
        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;
            }
        }
Example #3
0
        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;
            }
        }
Example #4
0
 private static void OnSparkleOnUpdateDetectedShowWithoutToast(object sender, UpdateDetectedEventArgs args)
 {
     Startup.UpdateDetected = true;
     _sparkle.ShowUpdateNeededUI(args.LatestVersion, false);
 }
Example #5
0
 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...";
 }