终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

56 linhas
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. }