RPS.Config.timerCheckUpdates_Tick C# (CSharp) Method

timerCheckUpdates_Tick() public method

public timerCheckUpdates_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        public void timerCheckUpdates_Tick(object sender, EventArgs e)
        {
            this.timerCheckUpdates.Enabled = false;
            if (this.screensaver.action != Screensaver.Actions.Preview) {
                string update;
                try {
                    update = this.getPersistantString("checkUpdates");
                } catch (KeyNotFoundException knfe) {
                    // Try again in a bit
                    this.timerCheckUpdates.Interval *= 2;
                    this.timerCheckUpdates.Enabled = true;
                    return;
                }
                switch (update) {
                    case "yes":
                    case "download":
                        this.checkUpdates = true;
                        this.downloadUpdates = true;
                        break;
                    case "notify":
                        this.checkUpdates = true;
                        break;
                }
                if (this.checkUpdates) {
                    //bgwCheckUpdate.DoWork();
                    //bgwCheckUpdate.RunWorkerAsync();
                    this.webUpdateCheck.Url = this.getUpdateUri();
                }
            }
        }