Example #1
0
 private void View_ConfirmPassword(object sender, EventArgs e)
 {
     if (!registrationService.CheckPassword(registrationView.ConfirmPassword))
     {
         registrationView.SetConfirmPasswordImageState(false, "Confirmation password cannot be empty");
     }
     else if (!registrationService.CheckConfirmPassword(registrationView.ConfirmPassword, registrationView.Password))
     {
         registrationView.SetConfirmPasswordImageState(false, "Passwords do not match");
     }
     else
     {
         registrationView.SetConfirmPasswordImageState(true, null);
     }
 }