|
- using BPASmartClient.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
-
- namespace BPASmartClient.CustomResource.Pages.View
- {
- /// <summary>
- /// AddNewUser.xaml 的交互逻辑
- /// </summary>
- public partial class AddNewUser : Window
- {
- public AddNewUser()
- {
- InitializeComponent();
- this.br.MouseLeftButtonDown += (o, e) =>
- {
- if (e.LeftButton == MouseButtonState.Pressed) this.DragMove();
- };
- ActionManage.GetInstance.CancelRegister("AddNewUserViewConfirm");
- ActionManage.GetInstance.CancelRegister("AddNewUserViewCancel");
- ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = true; this.Close(); }), "AddNewUserViewConfirm");
- ActionManage.GetInstance.Register(new Action(() => { this.DialogResult = false; this.Close(); }), "AddNewUserViewCancel");
- }
-
- private void newpb2_PasswordChanged(object sender, RoutedEventArgs e)
- {
- if (this.newpb2.Password.Length > 0)
- {
- this.newmarkText2.Visibility = Visibility.Collapsed;
- }
- else
- {
- this.newmarkText2.Visibility = Visibility.Visible;
- }
- }
-
- private void newpb1_PasswordChanged(object sender, RoutedEventArgs e)
- {
- if (this.newpb1.Password.Length > 0)
- {
- this.newmarkText1.Visibility = Visibility.Collapsed;
- }
- else
- {
- this.newmarkText1.Visibility = Visibility.Visible;
- }
- }
- }
- }
|