终端一体化运控平台
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.
 
 
 

61 lines
1.9 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. /// AddNewUser.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class AddNewUser : Window
  21. {
  22. public AddNewUser()
  23. {
  24. InitializeComponent();
  25. this.br.MouseLeftButtonDown += (o, e) =>
  26. {
  27. if (e.LeftButton == MouseButtonState.Pressed) this.DragMove();
  28. };
  29. ActionManage.GetInstance.CancelRegister("AddNewUserViewConfirm");
  30. ActionManage.GetInstance.CancelRegister("AddNewUserViewCancel");
  31. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = true; this.Close(); }), "AddNewUserViewConfirm");
  32. ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = false; this.Close(); }), "AddNewUserViewCancel");
  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. }
  57. }