Ejemplo n.º 1
0
 private void btnAceptarUser_Click(object sender, EventArgs e)
 {
     if (txtNewUser.Text != "" && txtNewUser.TextLength > 2)
     {
         if (txtNewPass.Text != "")
         {
             UserBus user     = new UserBus();
             var     response = user.ChangeUserPassword(txtNewUser.Text, txtNewPass.Text);
             if (response.Ok)
             {
                 //TODO: Ver funcionamiento necesario
                 this.Hide();
             }
             else
             {
                 msgError(response.GetFullErrorMessage);
             }
         }
         else
         {
             msgError("Ingresa nueva contraseña.");
         }
     }
     else
     {
         msgError("Ingresa nuevo usuario.");
     }
 }