public override void DidEnterBackground(UIApplication application)
{
// This is called when we enter the background.
// We are never notified if we are terminated. Therefore we should take this opportunity to save the
// current image and info file etc in case we are then terminated
// Then, if monogame is fixed for saving/loading images then we can just leave the app running in the
// foreground and we'll be able to carry on.
// However if not fixed then we'll have to go back to monotouch front end and let them pick the picture
// and carry on - problem is we lose our undo/redo buffer unless we also save all of those images?!?!
if (this.paintApp != null)
{
this.paintApp.ForceSaveAndExit();
}
else if (this.playBackApp != null)
{
this.playBackApp.ForcePause();
}
}