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; } } }
void OnCheckForUpdates(object sender, EventArgs e) { var updater = new Sparkle.SUUpdater(); updater.CheckForUpdates(this); }