private void btnLogin_Click(object sender, EventArgs e) { try { usuarioRepository.ExisteUsuarioYContrasenia(txtUsername.Text, txtPassword.Text); if (usuarioRepository.EsUsuarioMigrado(txtUsername.Text)) { MessageBoxUtil.ShowInfo("Debe modificar su contraseña."); NavigableFormUtil.ForwardTo(this, new RegistroUsuario.ModificarPasswordUsuarioForm(txtUsername.Text, this)); } else { Session.Instance().OpenSession(txtUsername.Text); Rol userRol = rolRepository.IdRolDeUsuario(txtUsername.Text); NavigableFormUtil.ForwardTo(this, new SeleccionarFuncionalidadForm(this, userRol)); } } catch (StoredProcedureException ex) { MessageBoxUtil.ShowError(ex.Message); } }