Ejemplo n.º 1
0
 private void ShowLoginPassword_OnClick(object sender, RoutedEventArgs e)
 {
     if (ShowLoginPasswordToggleButton.IsChecked is true)
     {
         LoginPasswordBox.Visibility     = Visibility.Collapsed;
         ShowLoginPasswordBox.Text       = LoginPasswordBox.Password;
         ShowLoginPasswordBox.Visibility = Visibility.Visible;
         ShowLoginPasswordBox.Focus();
     }
     else
     {
         LoginPasswordBox.Visibility     = Visibility.Visible;
         ShowLoginPasswordBox.Visibility = Visibility.Collapsed;
         LoginPasswordBox.Focus();
     }
 }
Ejemplo n.º 2
0
        private void TransitionerBackToUser_OnClick(object sender, RoutedEventArgs e)
        {
            if (LoginTransitioner.SelectedIndex != 0)
            {
                LoginTransitioner.SelectedIndex = 0;
            }

            PasswordBox.Clear();
            ShowPasswordBox.Clear();
            LoginPasswordBox.Clear();
            ShowLoginPasswordBox.Clear();
            ConfirmPasswordBox.Clear();
            ShowConfirmPasswordBox.Clear();
            MonobankApiKey.Clear();
            ForgotPasswordCheckMonobankApiKey.Clear();

            Transitioner.SelectedIndex = 1;
        }