예제 #1
0
 void showOrHideOptionsWindow()
 {
     if (optionsWindow.IsVisible)
     {
         optionsWindow.Hide();
     }
     else
     {
         optionsWindow.Show();
     }
 }
예제 #2
0
        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();
     }
 }