/// <summary> /// //Removes a screen from the ScreenManager /// </summary> public void RemoveScreen( Screen screen ) { // If we have a graphics device, tell the screen to unload content. if ( ( graphicsDeviceService != null ) && ( graphicsDeviceService.GraphicsDevice != null ) ) { screen.UnloadContent(); } screen.State = Screen.ScreenState.Inactive; Screens.Remove( screen ); }