|
- using BPASmartClient.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Navigation;
- using System.Windows.Shapes;
-
- namespace BPASmart.UserManagement.View
- {
- /// <summary>
- /// AddNewUser.xaml 的交互逻辑
- /// </summary>
- public partial class AddNewUser : UserControl
- {
- public AddNewUser()
- {
- InitializeComponent();
- }
-
- private void TextBox_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.Enter) pb.Focus();
- }
-
- private void pb_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.Enter) pb2.Focus();
- }
-
- private void pb2_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.Key == Key.Enter) registerButton.Focus();
-
- }
-
- private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
- {
- this.markText.Visibility = this.pb.Password.Length > 0 ? Visibility.Collapsed : Visibility.Visible;
- }
-
- private void PasswordBox2_PasswordChanged(object sender, RoutedEventArgs e)
- {
- this.mark2Text.Visibility = this.pb2.Password.Length > 0 ? Visibility.Collapsed : Visibility.Visible;
- }
- }
- }
|