예제 #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
        }
예제 #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();
        }
예제 #4
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     _sparkle.CheckForUpdatesAtUserRequest();
 }
예제 #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     _sparkleUpdateDetector.CheckForUpdatesAtUserRequest();
 }
예제 #6
0
        private void _checkForNewVersionMenuItem_Click(object sender, EventArgs e)
        {
#if !__MonoCS__
            _sparkleApplicationUpdater.CheckForUpdatesAtUserRequest();
#endif
        }