PurplePen.Updater.CheckForUpdates C# (CSharp) Method

CheckForUpdates() public static method

public static CheckForUpdates ( ) : void
return void
        public static void CheckForUpdates()
        {
            if (!updateCheckStarted) {
                updateCheckStarted = true;
                versionCheckWorker = new BackgroundWorker();
                versionCheckWorker.DoWork += versionCheckWorker_DoWork;
                versionCheckWorker.RunWorkerCompleted += versionCheckWorker_RunWorkerCompleted;
                versionCheckWorker.RunWorkerAsync();
            }
        }

Usage Example

Example #1
0
 private void InitialScreen_Shown(object sender, EventArgs e)
 {
     // Begin check for new version in the background.
     Updater.CheckForUpdates();
 }