终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

58 rader
1.7 KiB

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