コード例 #1
0
 private void BtnStart_Click(object sender, RoutedEventArgs e)
 {
     _timer.Start();
     btnCancel.IsEnabled = false;
     btnStart.IsEnabled  = false;
     foreach (RadioButton rb in stkPanel.Children)
     {
         rb.IsEnabled = false;
     }
     psbLoad.Visibility = Visibility.Visible;
     lblLoad.Visibility = Visibility.Visible;
     _window            = (MainMenuWindow)Window.GetWindow(this);
 }
コード例 #2
0
 private void BtnLogin_Click(object sender, RoutedEventArgs e)
 {
     TryLogin(txtEmail.Text, txtPassword.Password);
     if (Session.IsAuthenticated())
     {
         Hide();
         txtEmail.Text            = string.Empty;
         txtPassword.Password     = string.Empty;
         lblErrorLogin.Visibility = Visibility.Hidden;
         MainMenuWindow mainMenuWindow = new MainMenuWindow {
             Owner = this
         };
         mainMenuWindow.ShowDialog();
     }
     else
     {
         _timer.Start();
         ValidationHelper.ShowErrors(lblErrorLogin, "Kombination nicht gefunden.");
     }
 }
コード例 #3
0
        private void BtnCancel_Click(object sender, RoutedEventArgs e)
        {
            MainMenuWindow mainMenuWindow = (MainMenuWindow)Window.GetWindow(this);

            mainMenuWindow.RecoverState();
        }
コード例 #4
0
 private void StartGame(MainMenuWindow window)
 {
     window.StartGame(new GameControl(_difficulty));
 }
コード例 #5
0
ファイル: GameControl.xaml.cs プロジェクト: IcyWillow/iet-120
        private void ShowMainMenu()
        {
            MainMenuWindow mainMenuWindow = (MainMenuWindow)Window.GetWindow(this);

            mainMenuWindow.RecoverState();
        }