终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

AddNewUser.xaml.cs 1.5 KiB

il y a 2 ans
il y a 2 ans
il y a 2 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. }