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 { } }
private void PasswordTextBox_TextChanged(object sender, EventArgs e) { PasswordChange?.Invoke(sender, e); CanRegister?.Invoke(sender, e); }
private void PasswordPictureBox_MouseEnter(object sender, EventArgs e) { PasswordChange?.Invoke(sender, e); }