Paint.PaintApp.ForceSaveAndExit C# (CSharp) Method

ForceSaveAndExit() public method

Forces the immediate Shutdown and saving of state on this thread We must not change thread because we are probably going into the background and therefore the main UI thread will not come alive again until the app is back in teh foreground again
public ForceSaveAndExit ( ) : void
return void
        public void ForceSaveAndExit()
        {
            if (this.paintMode != PaintMode.Exiting)
            {
                this.paintMode = PaintMode.Exiting;
                this.SaveAndExit();
            }
        }