StartLoop() public method

The method starts a NetSparkle background loop If NetSparkle is configured to check for updates on startup, proceeds to perform the check. You should only call this function when your app is initialized and shows its main window.
public StartLoop ( System.Boolean doInitialCheck ) : void
doInitialCheck System.Boolean
return void
コード例 #1
0
ファイル: Form1.cs プロジェクト: Deadpikle/NetSparkle
        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);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Lucas-S/NetSparkle
        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);
        }
コード例 #3
0
ファイル: InstanceManager.cs プロジェクト: JakeLondon/ootd
        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));
        }