示例#1
0
 private void ButtonClick(object sender, RoutedEventArgs e)
 {
     try
     {
         if (sender.Equals(btn_Change))
         {
             string userID          = txt_UserID.Text;
             string old_password    = old_password_box.Password;
             string new_password    = new_password_box.Password;
             string verify_password = verify_password_box.Password;
             PasswordChange?.Invoke(this, new PasswordChangeEventArgs(userID, old_password, new_password, verify_password));
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex, "Exception");
     }
     finally
     {
     }
 }
示例#2
0
 private void PasswordTextBox_TextChanged(object sender, EventArgs e)
 {
     PasswordChange?.Invoke(sender, e);
     CanRegister?.Invoke(sender, e);
 }
示例#3
0
 private void PasswordPictureBox_MouseEnter(object sender, EventArgs e)
 {
     PasswordChange?.Invoke(sender, e);
 }