private static void CheckForUpdates_Click(object sender, EventArgs e) { _sparkle.UpdateDetected -= OnSparkleOnUpdateDetectedShowWithToast; _sparkle.UpdateDetected += OnSparkleOnUpdateDetectedShowWithoutToast; _sparkle.CheckForUpdatesAtUserRequest(); }
/// <summary> /// Start doing whatever is needed for the supported type of action. /// </summary> public void StartWorking(Dictionary <string, string> commandLineArgs) { #if !MONO using (var sparkle = new Sparkle(@"http://downloads.palaso.org/FlexBridge/Alpha/appcast.xml", CommonResources.chorus32x32)) { sparkle.DoLaunchAfterUpdate = false; sparkle.CheckForUpdatesAtUserRequest(); } #endif }
public void AutoUpdate() { string assembly = Path.GetFileName(Assembly.GetExecutingAssembly().Location); Sparkle sparkle = new Sparkle(AppcastUrl, null, NetSparkle.Enums.SecurityMode.UseIfPossible, DSAPublicKey, assembly); sparkle.CloseApplication += (() => { AcadApp.DocumentManager.MdiActiveDocument.SendStringToExecute("quit ", true, false, true); }); sparkle.CheckForUpdatesAtUserRequest(); }
private void button1_Click(object sender, RoutedEventArgs e) { _sparkle.CheckForUpdatesAtUserRequest(); }
private void button2_Click(object sender, EventArgs e) { _sparkleUpdateDetector.CheckForUpdatesAtUserRequest(); }
private void _checkForNewVersionMenuItem_Click(object sender, EventArgs e) { #if !__MonoCS__ _sparkleApplicationUpdater.CheckForUpdatesAtUserRequest(); #endif }