private void btnAgregar_Click(object sender, EventArgs e) { Alumno alumno = new Alumno(); alumno.setMatricula(txtMatricula.Text); alumno.setNombre(txtNombre.Text); alumno.setUsuario(txtUsuario.Text); alumno.setPassword(txtPass.Text); alumno.setApellidoPaterno(txtApellidoP.Text); alumno.setApellidoMaterno(txtApellidoM.Text); alumno.setEmail(textEmail.Text); alumno.setTelefono(textTelefono.Text); alumno.setCiudad(txtCiudad.Text); AlumnosDAO daoAlumno = new AlumnosDAO(); daoAlumno.insertarAlumno(alumno); }