Exemple #1
0
        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
        }
Exemple #3
0
        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();
 }
Exemple #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     _sparkleUpdateDetector.CheckForUpdatesAtUserRequest();
 }
Exemple #6
0
        private void _checkForNewVersionMenuItem_Click(object sender, EventArgs e)
        {
#if !__MonoCS__
            _sparkleApplicationUpdater.CheckForUpdatesAtUserRequest();
#endif
        }