private bool guiController_QueryEditorShutdown() { if (_testGameInProgress) { _guiController.ShowMessage("You can't close the editor while testing your game. Quit the game first.", MessageBoxIcon.Warning); return false; } return true; }