public StartLoop ( System.Boolean doInitialCheck ) : void | ||
doInitialCheck | System.Boolean | |
return | void |
public Form1() { InitializeComponent(); _sparkle = new Sparkle("https://deadpikle.github.io/NetSparkle/files/sample-app/appcast.xml", SystemIcons.Application) { TrustEverySSLConnection = true, }; _sparkle.UpdateDetected += new UpdateDetected(_sparkle_updateDetected); //_sparkle.EnableSilentMode = true; //_sparkle.HideReleaseNotes = true; _sparkle.StartLoop(true); }
public Form1() { InitializeComponent(); _sparkle = new Sparkle("file://" + DirectoryOfTheApplicationExecutable + "../../../../Extras/Sample Appcast.xml", SystemIcons.Application) //_sparkle = new Sparkle("https://update.applimit.com/netsparkle/versioninfo.xml") { TrustEverySSLConnection = true, //EnableSystemProfiling = true, //SystemProfileUrl = new Uri("http://update.applimit.com/netsparkle/stat/profileInfo.php") }; //_sparkle.UpdateDetected += new UpdateDetected(_sparkle_updateDetected); //_sparkle.EnableSilentMode = true; //_sparkle.HideReleaseNotes = true; _sparkle.StartLoop(true); }
public InstanceManager() { InitializeComponent(); if (GlobalPreferences.IsFirstRun) { trayIcon.ShowBalloonTip(2000, Resources.OotdRunning, Resources.RightClickToConfigure, ToolTipIcon.Info); Logger.Debug("First Run"); } _graphics = CreateGraphics(); // setup update checker. _sparkle = UnsafeNativeMethods.Is64Bit() ? new Sparkle(AppCast64Url, Resources.AppIcon) : new Sparkle(AppCast32Url, Resources.AppIcon); _sparkle.UpdateDetected += OnSparkleOnUpdateDetectedShowWithToast; _sparkle.UpdateWindowDismissed += OnSparkleOnUpdateWindowDismissed; // check for updates every 20 days, but don't check on first run because we'll have 2 tooltips popup and will likely confuse the user. _sparkle.StartLoop(!GlobalPreferences.IsFirstRun, TimeSpan.FromDays(20)); }