|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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>
- /// ChangeUser.xaml 的交互逻辑
- /// </summary>
- 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;
- }
- }
- }
|