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); }
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."); } }
private void BtnCancel_Click(object sender, RoutedEventArgs e) { MainMenuWindow mainMenuWindow = (MainMenuWindow)Window.GetWindow(this); mainMenuWindow.RecoverState(); }
private void StartGame(MainMenuWindow window) { window.StartGame(new GameControl(_difficulty)); }
private void ShowMainMenu() { MainMenuWindow mainMenuWindow = (MainMenuWindow)Window.GetWindow(this); mainMenuWindow.RecoverState(); }