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 { /// /// ChangeUser.xaml 的交互逻辑 /// public partial class ChangeUser : UserControl { public ChangeUser() { InitializeComponent(); } private void pb0_PasswordChanged(object sender, RoutedEventArgs e) { this.mark0Text.Visibility = this.pb0.Password.Length > 0 ? Visibility.Collapsed : Visibility.Visible; } private void TextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) pb1.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) saveButton.Focus(); } private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) { this.markText.Visibility = this.pb1.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; } } }