终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

73 lines
2.3 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.Shapes;
  15. namespace BPASmartClient.CustomResource.Pages.View
  16. {
  17. /// <summary>
  18. /// PasswordChangeView.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class PasswordChangeView : Window
  21. {
  22. public PasswordChangeView()
  23. {
  24. InitializeComponent();
  25. this.br.MouseLeftButtonDown += (o, e) =>
  26. {
  27. if (e.LeftButton == MouseButtonState.Pressed) this.DragMove();
  28. };
  29. ActionManage.GetInstance.CancelRegister("PasswordChangeViewconfirm");
  30. ActionManage.GetInstance.CancelRegister("PasswordChangeViewCancel");
  31. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = true; this.Close(); }), "PasswordChangeViewconfirm");
  32. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = false; this.Close(); }), "PasswordChangeViewCancel");
  33. }
  34. private void newpb2_PasswordChanged(object sender, RoutedEventArgs e)
  35. {
  36. if (this.newpb2.Password.Length > 0)
  37. {
  38. this.newmarkText2.Visibility = Visibility.Collapsed;
  39. }
  40. else
  41. {
  42. this.newmarkText2.Visibility = Visibility.Visible;
  43. }
  44. }
  45. private void newpb1_PasswordChanged(object sender, RoutedEventArgs e)
  46. {
  47. if (this.newpb1.Password.Length > 0)
  48. {
  49. this.newmarkText1.Visibility = Visibility.Collapsed;
  50. }
  51. else
  52. {
  53. this.newmarkText1.Visibility = Visibility.Visible;
  54. }
  55. }
  56. private void oldpb_PasswordChanged(object sender, RoutedEventArgs e)
  57. {
  58. if (this.oldpb.Password.Length > 0)
  59. {
  60. this.oldmarkText.Visibility = Visibility.Collapsed;
  61. }
  62. else
  63. {
  64. this.oldmarkText.Visibility = Visibility.Visible;
  65. }
  66. }
  67. }
  68. }