RPS.Screensaver.OnExit C# (CSharp) Method

OnExit() public method

public OnExit ( ) : void
return void
        public void OnExit() {
            Cursor.Show();
            if (this.fileNodes != null) {
                this.fileNodes.CancelBackgroundWorker();
                this.config.setPersistant("sequentialStartImageId", this.fileNodes.currentSequentialSeedId.ToString());
            }
            this.config.savePersistantConfig();
            if (this.fileNodes != null) this.fileNodes.OnExitCleanUp();
            // Manually call config close to ensure it will not cancel the close.
            this.applicationClosing = true;
            Application.Exit();
        }