private void OnOnScreenDebugClosed(MDScreen Screen) { if (OnScreenDebug == Screen) { OnScreenDebug.OnScreenClosed -= OnOnScreenDebugClosed; OnScreenDebug = null; } }
private void ToggleOnScreenDebug() { if (OnScreenDebug == null) { OnScreenDebug = OpenScreen <MDDebugScreen>(OnScreenDebugName, MDScreenLayer.Debug); OnScreenDebug.OnScreenClosed += OnOnScreenDebugClosed; } else { OnScreenDebug.CloseScreen(); } }