终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

56 líneas
1.5 KiB

  1. using BPASmartClient.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace BPASmart.UserManagement.View
  17. {
  18. /// <summary>
  19. /// AddNewUser.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class AddNewUser : UserControl
  22. {
  23. public AddNewUser()
  24. {
  25. InitializeComponent();
  26. }
  27. private void TextBox_KeyDown(object sender, KeyEventArgs e)
  28. {
  29. if (e.Key == Key.Enter) pb.Focus();
  30. }
  31. private void pb_KeyDown(object sender, KeyEventArgs e)
  32. {
  33. if (e.Key == Key.Enter) pb2.Focus();
  34. }
  35. private void pb2_KeyDown(object sender, KeyEventArgs e)
  36. {
  37. if (e.Key == Key.Enter) registerButton.Focus();
  38. }
  39. private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
  40. {
  41. this.markText.Visibility = this.pb.Password.Length > 0 ? Visibility.Collapsed : Visibility.Visible;
  42. }
  43. private void PasswordBox2_PasswordChanged(object sender, RoutedEventArgs e)
  44. {
  45. this.mark2Text.Visibility = this.pb2.Password.Length > 0 ? Visibility.Collapsed : Visibility.Visible;
  46. }
  47. }
  48. }