示例#1
0
 private static void Initialize()
 {
     lock (__locker)
     {
         if (__updater == null)
         {
             __updater = new Sparkle.SUUpdater()
             {
                 AutomaticallyChecksForUpdates = true,
                 AutomaticallyDownloadsUpdates = false,
                 UpdateCheckInterval           = 60 * 60 * 12 // in seconds (12 hours)
             };
             __originalFeedUrl = __updater.FeedURL;
         }
     }
 }
示例#2
0
        void OnCheckForUpdates(object sender, EventArgs e)
        {
            var updater = new Sparkle.SUUpdater();

            updater.CheckForUpdates(this);
        }