private void personalMode() { gameSystem.currentGameMode = GameMode.personal; uiSelectModeWindow.Visible = false; var dialog = new UIDialog(gameSystem, "message", "developing"); dialog.okButtonClicked = () => { uiSelectModeWindow.Visible = true; dialog.Close(); }; dialog.Show(uiSelectModeWindow); }