Beispiel #1
0
        private void label13_Click(object sender, EventArgs e)
        {
            fDatosPerfil f = new fDatosPerfil(user);

            this.Visible = false;
            f.ShowDialog();
            this.Visible = true;
        }
Beispiel #2
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            fDatosPerfil datosPerfil = new fDatosPerfil(ong);

            this.Hide();
            datosPerfil.ShowDialog();
            this.Close();
        }
Beispiel #3
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            fDatosPerfil datos = new fDatosPerfil(user);

            this.Visible = false;
            datos.ShowDialog();
            this.Visible = true;
        }
Beispiel #4
0
        private void label5_Click(object sender, EventArgs e)
        {
            fDatosPerfil datosPerfil = new fDatosPerfil(usuario);

            this.Visible = false;
            datosPerfil.ShowDialog();
            this.Visible = true;
        }
Beispiel #5
0
        private void label13_Click(object sender, EventArgs e)
        {
            fDatosPerfil datosPerfil = new fDatosPerfil(user);

            this.Hide();
            datosPerfil.ShowDialog();
            this.Close();
        }
        private void bAtras_Click(object sender, EventArgs e)
        {
            fDatosPerfil edicion = new fDatosPerfil(user);

            this.Hide();
            edicion.ShowDialog();
            this.Close();
        }
Beispiel #7
0
        private void pictureBox2_Click_1(object sender, EventArgs e)
        {
            fDatosPerfil datosPerfil = new fDatosPerfil(profesor);

            this.Visible = false;
            datosPerfil.ShowDialog();
            this.Visible = true;
        }
Beispiel #8
0
 private void label5_Click(object sender, EventArgs e)
 {
     try
     {
         if (user != null)
         {
             fDatosPerfil datosPerfil = new fDatosPerfil(user);
             this.Visible = false;
             datosPerfil.ShowDialog();
             this.Visible = true;
         }
         else
         {
             throw new Exception("El usuario no está registrado");
         }
     } catch (Exception ex)
     {
         MessageBox.Show("ERROR: " + ex.Message);
     }
 }
        private void bGuardarCambios_Click(object sender, EventArgs e)
        {
            if (user.RolUsuario.RolName.Equals("ALUMNO"))
            {
                if (!tEmailAlumno.Text.Equals(user.CorreoUsuario))
                {
                    user.CorreoUsuario = tEmailAlumno.Text;
                }
                if (!tNombreAlumno.Text.Equals(user.NombreUsuario))
                {
                    user.NombreUsuario = tNombreAlumno.Text;
                }
                if (tPwdAlumno.Text.Equals(tConfPwdAlumno.Text) && !tPwdAlumno.Text.Equals(user.ContraseniaUsuario))
                {
                    user.ContraseniaUsuario = tPwdAlumno.Text;
                }
            }
            else if (user.RolUsuario.RolName.Equals("PROFESOR"))
            {
                if (!tCorreoProfesor.Text.Equals(user.CorreoUsuario))
                {
                    user.CorreoUsuario = tCorreoProfesor.Text;
                }
                if (!tNombreProfesor.Text.Equals(user.NombreUsuario))
                {
                    user.NombreUsuario = tNombreProfesor.Text;
                }
                if (tPwdProfesor.Text.Equals(tConfPwdProfesor.Text) && !tPwdProfesor.Text.Equals(user.ContraseniaUsuario))
                {
                    user.ContraseniaUsuario = tPwdProfesor.Text;
                }
                if (!tNiuProfe.Text.Equals(user.NiuUsuario))
                {
                    user.NiuUsuario = tNiuProfe.Text;
                }
            }
            else if (user.RolUsuario.RolName.Equals("ENTIDAD"))
            {
                if (!tCorreoEntidad.Text.Equals(user.CorreoUsuario))
                {
                    user.CorreoUsuario = tCorreoEntidad.Text;
                }
                if (!tNombreEntidad.Text.Equals(user.NombreUsuario))
                {
                    user.NombreUsuario = tNombreEntidad.Text;
                }
                if (tPwdEntidad.Text.Equals(tConfPwdEntidad.Text) && !tPwdEntidad.Text.Equals(user.ContraseniaUsuario))
                {
                    user.ContraseniaUsuario = tPwdEntidad.Text;
                }
                if (!tCifEntidad.Text.Equals(user.CifUsuario))
                {
                    user.CifUsuario = tCifEntidad.Text;
                }
            }
            fDatosPerfil f = new fDatosPerfil(user);

            this.Hide();
            f.ShowDialog();
            this.Close();
        }