private void abAgregarNotas_Click(object sender, EventArgs e)
        {
            id_detalleMatricula2 = 0;

            if (cmbClasesCS.SelectedItem != null)
            {
                id_detalleMatricula2 = dbConn.obtenerVariableEntera("SELECT dbo.detalleMatricula.id_DetalleMatricula FROM     dbo.datosEstudiante INNER JOIN dbo.matricula ON dbo.datosEstudiante.identidadEstudiante = dbo.matricula.id_Estudiante INNER JOIN dbo.detalleMatricula ON dbo.matricula.id_RegistroMatricula = dbo.detalleMatricula.id_RegistroMatricula inner join dbo.cursos on dbo.detalleMatricula.id_Curso = dbo.cursos.id_Curso inner join dbo.seccion on dbo.detalleMatricula.id_Seccion = dbo.seccion.id_Seccion where dbo.datosEstudiante.identidadEstudiante = '" + txtIdentidadAE.Text + "'  and dbo.cursos.nombreCurso = '" + txtCurso.Text + "' and dbo.seccion.nombreSeccion = '" + txtSeccion.Text + "'");
                Id_Clase             = dbConn.obtenerVariableEntera("SELECT        dbo.clasesCurso.id_Clase FROM            dbo.clases INNER JOIN dbo.clasesCurso ON dbo.clases.id_Clase = dbo.clasesCurso.id_Clase INNER JOIN" +
                                                                    " dbo.cursos ON dbo.clasesCurso.id_Curso = dbo.cursos.id_Curso Where dbo.clases.[nombreClase] = '" + cmbClasesCS.SelectedItem.ToString() + "' ");

                if (formaEvaluacion == 1)
                {
                    if (txtNota1.Text != "0")
                    {
                        if (txtNota1.Text != string.Empty && txtNota2.Text != string.Empty && txtNota3.Text != string.Empty && txtNota4.Text != string.Empty && txtNotaProm.Text != string.Empty)
                        {
                            notaA = "";
                            notaB = "";
                            notaC = "";
                            notaD = "";
                            notaE = "";

                            nota1     = float.Parse(txtNota1.Text);
                            nota2     = float.Parse(txtNota2.Text);
                            nota3     = float.Parse(txtNota3.Text);
                            nota4     = float.Parse(txtNota4.Text);
                            notaFinal = float.Parse(txtNotaProm.Text);

                            if (dbConn.PAModificarNota(id_detalleMatricula2, Id_Clase, nota1, nota2, nota3, nota4, notaFinal, notaA, notaB, notaC, notaD, notaE))
                            {
                                message.lblError.Location = new Point(145, 68);
                                messageOk.lblCheck.Text   = "SE AGREGARON CORRECTAMENTE";
                                messageOk.ShowDialog();

                                id_detalleMatricula2 = 0;
                            }
                            else
                            {
                                message.lblError.Location = new Point(145, 68);
                                message.lblError.Text     = "ERROR AL INGRESAR NOTAS";
                                message.ShowDialog();
                            }
                        }
                        else
                        {
                            message.lblError.Location = new Point(145, 68);
                            message.lblError.Text     = "INGRESE TODAS LAS NOTAS";
                            message.ShowDialog();
                        }
                    }
                    else
                    {
                        message.lblError.Location = new Point(145, 68);
                        message.lblError.Text     = "NOTA 1 DEBE SER\n DIFERENTE DE 0";
                        message.ShowDialog();
                    }
                }
                else if (formaEvaluacion == 2)
                {
                    nota1     = 0;
                    nota2     = 0;
                    nota3     = 0;
                    nota4     = 0;
                    notaFinal = 0;
                    notaA     = mktNotaA.Text;
                    notaB     = mktNotaB.Text;
                    notaC     = mktNotaC.Text;
                    notaD     = mktNotaD.Text;
                    notaE     = mktNotaE.Text;

                    if (mktNotaA.Text != string.Empty)
                    {
                        if (dbConn.PAModificarNota(id_detalleMatricula2, Id_Clase, nota1, nota2, nota3, nota4, notaFinal, notaA, notaB, notaC, notaD, notaE))
                        {
                            message.lblError.Location = new Point(145, 68);
                            messageOk.lblCheck.Text   = "SE AGREGARON CORRECTAMENTE";
                            messageOk.ShowDialog();

                            id_detalleMatricula2 = 0;
                        }
                        else
                        {
                            message.lblError.Location = new Point(145, 68);
                            message.lblError.Text     = "ERROR AL INGRESAR NOTAS";
                            message.ShowDialog();
                        }
                    }
                    else
                    {
                        message.lblError.Location = new Point(145, 68);
                        message.lblError.Text     = "INGRESE\n LA PRIMERA NOTA";
                        message.ShowDialog();
                    }
                }
            }
            else
            {
                message.lblError.Location = new Point(145, 68);
                message.lblError.Text     = "DEBE SELECCIONAR UNA CLASE";
                message.ShowDialog();
            }
        }