void showOrHideOptionsWindow() { if (optionsWindow.IsVisible) { optionsWindow.Hide(); } else { optionsWindow.Show(); } }
public void Reset() { mLoginWindow.Hide(); mRegisterWindow.Hide(); mOptionsWindow.Hide(); mCreditsWindow.Hide(); mForgotPasswordWindow.Hide(); mResetPasswordWindow.Hide(); if (mCreateCharacterWindow != null) { mCreateCharacterWindow.Hide(); } if (mSelectCharacterWindow != null) { mSelectCharacterWindow.Hide(); } mMenuWindow.Show(); mOptionsButton.Show(); }
public void TogglePreferencesWindow() { if (!OptionsWindow.IsVisible) { OptionsWindow.LoadData(ViewModel.Settings); OptionsWindow.Show(); OptionsWindow.Owner = this; } else { OptionsWindow.Hide(); } }