public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg26.Checked == true)
            {
                resppreg26 = true;
                SQL_registro.resp26 = "Correcta";
            }
            else
            {
                resppreg26 = false;
                SQL_registro.resp26 = "Incorrecta";
            }

            if (rdbres1preg27.Checked == true)
            {
                resppreg27 = true;
                SQL_registro.resp27 = "Correcta";
            }
            else
            {
                resppreg27 = false;
                SQL_registro.resp27 = "Incorrecta";
            }

            if (rdbres1preg28.Checked == true)
            {
                resppreg28 = true;
                SQL_registro.resp28 = "Correcta";
            }
            else
            {
                resppreg28 = false;
                SQL_registro.resp28 = "Incorrecta";
            }

            if (rdbres2preg29.Checked == true)
            {
                resppreg29 = true;
                SQL_registro.resp29 = "Correcta";
            }
            else
            {
                resppreg29 = false;
                SQL_registro.resp29 = "Incorrecta";
            }

            if (rdbres1preg30.Checked == true)
            {
                resppreg30 = true;
                SQL_registro.resp30 = "Correcta";
            }
            else
            {
                resppreg30 = false;
                SQL_registro.resp30 = "Incorrecta";
            }
        }
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres4preg6.Checked == true)
            {
                resppreg6 = true;
                SQL_registro.resp6 = "Correcta";
            }
            else
            {
                resppreg6 = false;
                SQL_registro.resp6 = "Incorrecta";
            }

            if (rdbres2preg7.Checked == true)
            {
                resppreg7 = true;
                SQL_registro.resp7 = "Correcta";
            }
            else
            {
                resppreg7 = false;
                SQL_registro.resp7 = "Incorrecta";
            }

            if (rdbres1preg8.Checked == true)
            {
                resppreg8 = true;
                SQL_registro.resp8 = "Correcta";
            }
            else
            {
                resppreg8 = false;
                SQL_registro.resp8 = "Incorrecta";
            }

            if (rdbres3preg9.Checked == true)
            {
                resppreg9 = true;
                SQL_registro.resp9 = "Correcta";
            }
            else
            {
                resppreg9 = false;
                SQL_registro.resp9 = "Incorrecta";
            }

            if (rdbres1preg10.Checked == true)
            {
                resppreg10 = true;
                SQL_registro.resp10 = "Correcta";
            }
            else
            {
                resppreg10 = false;
                SQL_registro.resp10 = "Incorrecta";
            }
        }
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres2preg21.Checked == true)
            {
                resppreg21 = true;
                SQL_registro.resp21 = "Correcto";
            }
            else
            {
                resppreg21 = false;
                SQL_registro.resp21 = "Incorrecto";
            }

            if (rdbres4preg22.Checked == true)
            {
                resppreg22 = true;
                SQL_registro.resp22 = "Correcto";
            }
            else
            {
                resppreg22 = false;
                SQL_registro.resp22 = "Incorrecto";
            }

            if (rdbres3preg23.Checked == true)
            {
                resppreg23 = true;
                SQL_registro.resp23 = "Correcto";
            }
            else
            {
                resppreg23 = false;
                SQL_registro.resp23 = "Incorrecto";
            }

            if (rdbres3preg24.Checked == true)
            {
                resppreg24 = true;
                SQL_registro.resp24 = "Correcto";
            }
            else
            {
                resppreg24 = false;
                SQL_registro.resp24 = "Incorrecto";
            }

            if (rdbres3preg25.Checked == true)
            {
                resppreg25 = true;
                SQL_registro.resp25 = "Correcto";
            }
            else
            {
                resppreg25 = false;
                SQL_registro.resp25 = "Incorrecto";
            }
        }
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg16.Checked == true)
            {
                resppreg16 = true;
                SQL_registro.resp16 = "Correcta";
            }
            else
            {
                resppreg16 = false;
                SQL_registro.resp16 = "Incorrecta";
            }

            if (rdbres1preg17.Checked == true)
            {
                resppreg17 = true;
                SQL_registro.resp17 = "Correcta";
            }
            else
            {
                resppreg17 = false;
                SQL_registro.resp17 = "Incorrecta";
            }

            if (rdbres2preg18.Checked == true)
            {
                resppreg18 = true;
                SQL_registro.resp18 = "Correcta";
            }
            else
            {
                resppreg18 = false;
                SQL_registro.resp18 = "Incorrecta";
            }

            if (rdbres1preg19.Checked == true)
            {
                resppreg19 = true;
                SQL_registro.resp19 = "Correcta";
            }
            else
            {
                resppreg19 = false;
                SQL_registro.resp19 = "Incorrecta";
            }

            if (rdbres1preg20.Checked == true)
            {
                resppreg20 = true;
                SQL_registro.resp20 = "Correcta";
            }
            else
            {
                resppreg20 = false;
                SQL_registro.resp20 = "Incorrecta";
            }
        }
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg11.Checked == true)
            {
                resppreg11 = true;
                SQL_registro.resp11 = "Correcto";
            }
            else
            {
                resppreg11 = false;
                SQL_registro.resp11 = "Incorrecto";
            }

            if (rdbres4preg12.Checked == true)
            {
                resppreg12 = true;
                SQL_registro.resp12 = "Correcto";
            }
            else
            {
                resppreg12 = false;
                SQL_registro.resp12 = "Incorrecto";
            }

            if (rdbres4preg13.Checked == true)
            {
                resppreg13 = true;
                SQL_registro.resp13 = "Correcto";
            }
            else
            {
                resppreg13 = false;
                SQL_registro.resp13 = "Incorrecto";
            }

            if (rdbres1preg14.Checked == true)
            {
                resppreg14 = true;
                SQL_registro.resp14 = "Correcto";
            }
            else
            {
                resppreg14 = false;
                SQL_registro.resp14 = "Incorrecto";
            }

            if (rdbres4preg15.Checked == true)
            {
                resppreg15 = true;
                SQL_registro.resp15 = "Correcto";
            }
            else
            {
                resppreg15 = false;
                SQL_registro.resp15 = "Incorrecto";
            }
        }
コード例 #6
0
        public void calificar()
        {
            SQL_registro reg = new SQL_registro();

            int nota = 0;

            if (reg.Resp1 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp2 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp3 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp4 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp5 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp6 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp7 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp8 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp9 == "Correcta")
            {
                nota += 10;
            }

            if (reg.Resp10 == "Correcta")
            {
                nota += 10;
            }

            lbl_nota.Text = nota.ToString();
        }
コード例 #7
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg46.Checked == true)
            {
                if (rdbres1preg46.Text.TrimEnd() == resppreg46)
                {
                    reg.Resp46 = "Correcta";
                }
                else
                {
                    reg.Resp46 = "Incorrecta";
                }
            }
            else if (rdbres2preg46.Checked == true)
            {
                if (rdbres2preg46.Text.TrimEnd() == resppreg46)
                {
                    reg.Resp46 = "Correcta";
                }
                else
                {
                    reg.Resp46 = "Incorrecta";
                }
            }
            else if (rdbres3preg46.Checked == true)
            {
                if (rdbres3preg46.Text.TrimEnd() == resppreg46)
                {
                    reg.Resp46 = "Correcta";
                }
                else
                {
                    reg.Resp46 = "Incorrecta";
                }
            }
            else if (rdbres4preg46.Checked == true)
            {
                if (rdbres4preg46.Text.TrimEnd() == resppreg46)
                {
                    reg.Resp46 = "Correcta";
                }
                else
                {
                    reg.Resp46 = "Incorrecta";
                }
            }

            if (rdbres1preg47.Checked == true)
            {
                if (rdbres1preg47.Text.TrimEnd() == resppreg47)
                {
                    reg.Resp47 = "Correcta";
                }
                else
                {
                    reg.Resp47 = "Incorrecta";
                }
            }
            else if (rdbres2preg47.Checked == true)
            {
                if (rdbres2preg47.Text.TrimEnd() == resppreg47)
                {
                    reg.Resp47 = "Correcta";
                }
                else
                {
                    reg.Resp47 = "Incorrecta";
                }
            }
            else if (rdbres3preg47.Checked == true)
            {
                if (rdbres3preg47.Text.TrimEnd() == resppreg47)
                {
                    reg.Resp47 = "Correcta";
                }
                else
                {
                    reg.Resp47 = "Incorrecta";
                }
            }
            else if (rdbres4preg47.Checked == true)
            {
                if (rdbres4preg47.Text.TrimEnd() == resppreg47)
                {
                    reg.Resp47 = "Correcta";
                }
                else
                {
                    reg.Resp47 = "Incorrecta";
                }
            }

            if (rdbres1preg48.Checked == true)
            {
                if (rdbres1preg48.Text.TrimEnd() == resppreg48)
                {
                    reg.Resp48 = "Correcta";
                }
                else
                {
                    reg.Resp48 = "Incorrecta";
                }
            }
            else if (rdbres2preg48.Checked == true)
            {
                if (rdbres2preg48.Text.TrimEnd() == resppreg48)
                {
                    reg.Resp48 = "Correcta";
                }
                else
                {
                    reg.Resp48 = "Incorrecta";
                }
            }
            else if (rdbres3preg48.Checked == true)
            {
                if (rdbres3preg48.Text.TrimEnd() == resppreg48)
                {
                    reg.Resp48 = "Correcta";
                }
                else
                {
                    reg.Resp48 = "Incorrecta";
                }
            }
            else if (rdbres4preg48.Checked == true)
            {
                if (rdbres4preg48.Text.TrimEnd() == resppreg48)
                {
                    reg.Resp48 = "Correcta";
                }
                else
                {
                    reg.Resp48 = "Incorrecta";
                }
            }

            if (rdbres1preg49.Checked == true)
            {
                if (rdbres1preg49.Text.TrimEnd() == resppreg49)
                {
                    reg.Resp49 = "Correcta";
                }
                else
                {
                    reg.Resp49 = "Incorrecta";
                }
            }
            else if (rdbres2preg49.Checked == true)
            {
                if (rdbres2preg49.Text.TrimEnd() == resppreg49)
                {
                    reg.Resp49 = "Correcta";
                }
                else
                {
                    reg.Resp49 = "Incorrecta";
                }
            }
            else if (rdbres3preg49.Checked == true)
            {
                if (rdbres3preg49.Text.TrimEnd() == resppreg49)
                {
                    reg.Resp49 = "Correcta";
                }
                else
                {
                    reg.Resp49 = "Incorrecta";
                }
            }
            else if (rdbres4preg49.Checked == true)
            {
                if (rdbres4preg49.Text.TrimEnd() == resppreg49)
                {
                    reg.Resp49 = "Correcta";
                }
                else
                {
                    reg.Resp49 = "Incorrecta";
                }
            }

            if (rdbres1preg50.Checked == true)
            {
                if (rdbres1preg50.Text.TrimEnd() == resppreg50)
                {
                    reg.Resp50 = "Correcta";
                }
                else
                {
                    reg.Resp50 = "Incorrecta";
                }
            }
            else if (rdbres2preg50.Checked == true)
            {
                if (rdbres2preg50.Text.TrimEnd() == resppreg50)
                {
                    reg.Resp50 = "Correcta";
                }
                else
                {
                    reg.Resp50 = "Incorrecta";
                }
            }
            else if (rdbres3preg50.Checked == true)
            {
                if (rdbres3preg50.Text.TrimEnd() == resppreg50)
                {
                    reg.Resp50 = "Correcta";
                }
                else
                {
                    reg.Resp50 = "Incorrecta";
                }
            }
            else if (rdbres4preg50.Checked == true)
            {
                if (rdbres4preg50.Text.TrimEnd() == resppreg50)
                {
                    reg.Resp50 = "Correcta";
                }
                else
                {
                    reg.Resp50 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg51.Checked == true)
            {
                resppreg51 = true;
                SQL_registro.resp51 = "Correcta";
            }
            else
            {
                resppreg51 = false;
                SQL_registro.resp51 = "Incorrecta";
            }

            if (rdbres4preg52.Checked == true)
            {
                resppreg52 = true;
                SQL_registro.resp52 = "Correcta";
            }
            else
            {
                resppreg52 = false;
                SQL_registro.resp52 = "Incorrecta";
            }

            if (rdbres2preg53.Checked == true)
            {
                resppreg53 = true;
                SQL_registro.resp53 = "Correcta";
            }
            else
            {
                resppreg53 = false;
                SQL_registro.resp53 = "Incorrecta";
            }

            if (rdbres1preg54.Checked == true)
            {
                resppreg54 = true;
                SQL_registro.resp54 = "Correcta";
            }
            else
            {
                resppreg54 = false;
                SQL_registro.resp54 = "Incorrecta";
            }

            if (rdbres2preg55.Checked == true)
            {
                resppreg55 = true;
                SQL_registro.resp55 = "Correcta";
            }
            else
            {
                resppreg55 = false;
                SQL_registro.resp55 = "Incorrecta";
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres2preg36.Checked == true)
            {
                resppreg36 = true;
                SQL_registro.resp36 = "Correcta";
            }
            else
            {
                resppreg36 = false;
                SQL_registro.resp36 = "Incorrecta";
            }

            if (rdbres2preg37.Checked == true)
            {
                resppreg37 = true;
                SQL_registro.resp37 = "Correcta";
            }
            else
            {
                resppreg37 = false;
                SQL_registro.resp37 = "Incorrecta";
            }

            if (rdbres3preg38.Checked == true)
            {
                resppreg38 = true;
                SQL_registro.resp38 = "Correcta";
            }
            else
            {
                resppreg38 = false;
                SQL_registro.resp38 = "Incorrecta";
            }

            if (rdbres1preg39.Checked == true)
            {
                resppreg39 = true;
                SQL_registro.resp39 = "Correcta";
            }
            else
            {
                resppreg39 = false;
                SQL_registro.resp39 = "Incorrecta";
            }

            if (rdbres1preg40.Checked == true)
            {
                resppreg40 = true;
                SQL_registro.resp40 = "Correcta";
            }
            else
            {
                resppreg40 = false;
                SQL_registro.resp40 = "Incorrecta";
            }
        }
コード例 #10
0
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg11.Checked == true)
            {
                if (rdbres1preg11.Text.TrimEnd() == resppreg11)
                {
                    reg.Resp11 = "Correcta";
                }
                else
                {
                    reg.Resp11 = "Incorrecta";
                }
            }
            else if (rdbres2preg11.Checked == true)
            {
                if (rdbres2preg11.Text.TrimEnd() == resppreg11)
                {
                    reg.Resp11 = "Correcta";
                }
                else
                {
                    reg.Resp11 = "Incorrecta";
                }
            }
            else if (rdbres3preg11.Checked == true)
            {
                if (rdbres3preg11.Text.TrimEnd() == resppreg11)
                {
                    reg.Resp11 = "Correcta";
                }
                else
                {
                    reg.Resp11 = "Incorrecta";
                }
            }
            else if (rdbres4preg11.Checked == true)
            {
                if (rdbres4preg11.Text.TrimEnd() == resppreg11)
                {
                    reg.Resp11 = "Correcta";
                }
                else
                {
                    reg.Resp11 = "Incorrecta";
                }
            }

            if (rdbres1preg12.Checked == true)
            {
                if (rdbres1preg12.Text.TrimEnd() == resppreg12)
                {
                    reg.Resp12 = "Correcta";
                }
                else
                {
                    reg.Resp12 = "Incorrecta";
                }
            }
            else if (rdbres2preg12.Checked == true)
            {
                if (rdbres2preg12.Text.TrimEnd() == resppreg12)
                {
                    reg.Resp12 = "Correcta";
                }
                else
                {
                    reg.Resp12 = "Incorrecta";
                }
            }
            else if (rdbres3preg12.Checked == true)
            {
                if (rdbres3preg12.Text.TrimEnd() == resppreg12)
                {
                    reg.Resp12 = "Correcta";
                }
                else
                {
                    reg.Resp12 = "Incorrecta";
                }
            }
            else if (rdbres4preg12.Checked == true)
            {
                if (rdbres4preg12.Text.TrimEnd() == resppreg12)
                {
                    reg.Resp12 = "Correcta";
                }
                else
                {
                    reg.Resp12 = "Incorrecta";
                }
            }

            if (rdbres1preg13.Checked == true)
            {
                if (rdbres1preg13.Text.TrimEnd() == resppreg13)
                {
                    reg.Resp13 = "Correcta";
                }
                else
                {
                    reg.Resp13 = "Incorrecta";
                }
            }
            else if (rdbres2preg13.Checked == true)
            {
                if (rdbres2preg13.Text.TrimEnd() == resppreg13)
                {
                    reg.Resp13 = "Correcta";
                }
                else
                {
                    reg.Resp13 = "Incorrecta";
                }
            }
            else if (rdbres3preg13.Checked == true)
            {
                if (rdbres3preg13.Text.TrimEnd() == resppreg13)
                {
                    reg.Resp13 = "Correcta";
                }
                else
                {
                    reg.Resp13 = "Incorrecta";
                }
            }
            else if (rdbres4preg13.Checked == true)
            {
                if (rdbres4preg13.Text.TrimEnd() == resppreg13)
                {
                    reg.Resp13 = "Correcta";
                }
                else
                {
                    reg.Resp13 = "Incorrecta";
                }
            }

            if (rdbres1preg14.Checked == true)
            {
                if (rdbres1preg14.Text.TrimEnd() == resppreg14)
                {
                    reg.Resp14 = "Correcta";
                }
                else
                {
                    reg.Resp14 = "Incorrecta";
                }
            }
            else if (rdbres2preg14.Checked == true)
            {
                if (rdbres2preg14.Text.TrimEnd() == resppreg14)
                {
                    reg.Resp14 = "Correcta";
                }
                else
                {
                    reg.Resp14 = "Incorrecta";
                }
            }
            else if (rdbres3preg14.Checked == true)
            {
                if (rdbres3preg14.Text.TrimEnd() == resppreg14)
                {
                    reg.Resp14 = "Correcta";
                }
                else
                {
                    reg.Resp14 = "Incorrecta";
                }
            }
            else if (rdbres4preg14.Checked == true)
            {
                if (rdbres4preg14.Text.TrimEnd() == resppreg14)
                {
                    reg.Resp14 = "Correcta";
                }
                else
                {
                    reg.Resp14 = "Incorrecta";
                }
            }

            if (rdbres1preg15.Checked == true)
            {
                if (rdbres1preg15.Text.TrimEnd() == resppreg15)
                {
                    reg.Resp15 = "Correcta";
                }
                else
                {
                    reg.Resp15 = "Incorrecta";
                }
            }
            else if (rdbres2preg15.Checked == true)
            {
                if (rdbres2preg15.Text.TrimEnd() == resppreg15)
                {
                    reg.Resp15 = "Correcta";
                }
                else
                {
                    reg.Resp15 = "Incorrecta";
                }
            }
            else if (rdbres3preg15.Checked == true)
            {
                if (rdbres3preg15.Text.TrimEnd() == resppreg15)
                {
                    reg.Resp15 = "Correcta";
                }
                else
                {
                    reg.Resp15 = "Incorrecta";
                }
            }
            else if (rdbres4preg15.Checked == true)
            {
                if (rdbres4preg15.Text.TrimEnd() == resppreg15)
                {
                    reg.Resp15 = "Correcta";
                }
                else
                {
                    reg.Resp15 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres4preg31.Checked == true)
            {
                resppreg31 = true;
                SQL_registro.resp31 = "Correcta";
            }
            else
            {
                resppreg31 = false;
                SQL_registro.resp31 = "Incorrecta";
            }

            if (rdbres2preg32.Checked == true)
            {
                resppreg32 = true;
                SQL_registro.resp32 = "Correcta";
            }
            else
            {
                resppreg32 = false;
                SQL_registro.resp32 = "Incorrecta";
            }

            if (rdbres3preg33.Checked == true)
            {
                resppreg33 = true;
                SQL_registro.resp33 = "Correcta";
            }
            else
            {
                resppreg33 = false;
                SQL_registro.resp33 = "Incorrecta";
            }

            if (rdbres2preg34.Checked == true)
            {
                resppreg34 = true;
                SQL_registro.resp34 = "Correcta";
            }
            else
            {
                resppreg34 = false;
                SQL_registro.resp34 = "Incorrecta";
            }

            if (rdbres1preg35.Checked == true)
            {
                resppreg35 = true;
                SQL_registro.resp35 = "Correcta";
            }
            else
            {
                resppreg35 = false;
                SQL_registro.resp35 = "Incorrecta";
            }
        }
コード例 #12
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg56.Checked == true)
            {
                if (rdbres1preg56.Text.TrimEnd() == resppreg56)
                {
                    reg.Resp56 = "Correcta";
                }
                else
                {
                    reg.Resp56 = "Incorrecta";
                }
            }
            else if (rdbres2preg56.Checked == true)
            {
                if (rdbres2preg56.Text.TrimEnd() == resppreg56)
                {
                    reg.Resp56 = "Correcta";
                }
                else
                {
                    reg.Resp56 = "Incorrecta";
                }
            }
            else if (rdbres3preg56.Checked == true)
            {
                if (rdbres3preg56.Text.TrimEnd() == resppreg56)
                {
                    reg.Resp56 = "Correcta";
                }
                else
                {
                    reg.Resp56 = "Incorrecta";
                }
            }
            else if (rdbres4preg56.Checked == true)
            {
                if (rdbres4preg56.Text.TrimEnd() == resppreg56)
                {
                    reg.Resp56 = "Correcta";
                }
                else
                {
                    reg.Resp56 = "Incorrecta";
                }
            }

            if (rdbres1preg57.Checked == true)
            {
                if (rdbres1preg57.Text.TrimEnd() == resppreg57)
                {
                    reg.Resp57 = "Correcta";
                }
                else
                {
                    reg.Resp57 = "Incorrecta";
                }
            }
            else if (rdbres2preg57.Checked == true)
            {
                if (rdbres2preg57.Text.TrimEnd() == resppreg57)
                {
                    reg.Resp57 = "Correcta";
                }
                else
                {
                    reg.Resp57 = "Incorrecta";
                }
            }
            else if (rdbres3preg57.Checked == true)
            {
                if (rdbres3preg57.Text.TrimEnd() == resppreg57)
                {
                    reg.Resp57 = "Correcta";
                }
                else
                {
                    reg.Resp57 = "Incorrecta";
                }
            }
            else if (rdbres4preg57.Checked == true)
            {
                if (rdbres4preg57.Text.TrimEnd() == resppreg57)
                {
                    reg.Resp57 = "Correcta";
                }
                else
                {
                    reg.Resp57 = "Incorrecta";
                }
            }

            if (rdbres1preg58.Checked == true)
            {
                if (rdbres1preg58.Text.TrimEnd() == resppreg58)
                {
                    reg.Resp58 = "Correcta";
                }
                else
                {
                    reg.Resp58 = "Incorrecta";
                }
            }
            else if (rdbres2preg58.Checked == true)
            {
                if (rdbres2preg58.Text.TrimEnd() == resppreg58)
                {
                    reg.Resp58 = "Correcta";
                }
                else
                {
                    reg.Resp58 = "Incorrecta";
                }
            }
            else if (rdbres3preg58.Checked == true)
            {
                if (rdbres3preg58.Text.TrimEnd() == resppreg58)
                {
                    reg.Resp58 = "Correcta";
                }
                else
                {
                    reg.Resp58 = "Incorrecta";
                }
            }
            else if (rdbres4preg58.Checked == true)
            {
                if (rdbres4preg58.Text.TrimEnd() == resppreg58)
                {
                    reg.Resp58 = "Correcta";
                }
                else
                {
                    reg.Resp58 = "Incorrecta";
                }
            }

            if (rdbres1preg59.Checked == true)
            {
                if (rdbres1preg59.Text.TrimEnd() == resppreg59)
                {
                    reg.Resp59 = "Correcta";
                }
                else
                {
                    reg.Resp59 = "Incorrecta";
                }
            }
            else if (rdbres2preg59.Checked == true)
            {
                if (rdbres2preg59.Text.TrimEnd() == resppreg59)
                {
                    reg.Resp59 = "Correcta";
                }
                else
                {
                    reg.Resp59 = "Incorrecta";
                }
            }
            else if (rdbres3preg59.Checked == true)
            {
                if (rdbres3preg59.Text.TrimEnd() == resppreg59)
                {
                    reg.Resp59 = "Correcta";
                }
                else
                {
                    reg.Resp59 = "Incorrecta";
                }
            }
            else if (rdbres4preg59.Checked == true)
            {
                if (rdbres4preg59.Text.TrimEnd() == resppreg59)
                {
                    reg.Resp59 = "Correcta";
                }
                else
                {
                    reg.Resp59 = "Incorrecta";
                }
            }

            if (rdbres1preg60.Checked == true)
            {
                if (rdbres1preg60.Text.TrimEnd() == resppreg60)
                {
                    reg.Resp60 = "Correcta";
                }
                else
                {
                    reg.Resp60 = "Incorrecta";
                }
            }
            else if (rdbres2preg60.Checked == true)
            {
                if (rdbres2preg60.Text.TrimEnd() == resppreg60)
                {
                    reg.Resp60 = "Correcta";
                }
                else
                {
                    reg.Resp60 = "Incorrecta";
                }
            }
            else if (rdbres3preg60.Checked == true)
            {
                if (rdbres3preg60.Text.TrimEnd() == resppreg60)
                {
                    reg.Resp60 = "Correcta";
                }
                else
                {
                    reg.Resp60 = "Incorrecta";
                }
            }
            else if (rdbres4preg60.Checked == true)
            {
                if (rdbres4preg60.Text.TrimEnd() == resppreg60)
                {
                    reg.Resp60 = "Correcta";
                }
                else
                {
                    reg.Resp60 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg61.Checked == true)
            {
                resppreg61 = true;
                SQL_registro.resp61 = "Correcta";
            }
            else
            {
                resppreg61 = false;
                SQL_registro.resp61 = "Incorrecta";
            }

            if (rdbres4preg62.Checked == true)
            {
                resppreg62 = true;
                SQL_registro.resp62 = "Correcta";
            }
            else
            {
                resppreg62 = false;
                SQL_registro.resp62 = "Incorrecta";
            }

            if (rdbres2preg63.Checked == true)
            {
                resppreg63 = true;
                SQL_registro.resp63 = "Correcta";
            }
            else
            {
                resppreg63 = false;
                SQL_registro.resp63 = "Incorrecta";
            }

            if (rdbres1preg64.Checked == true)
            {
                resppreg64 = true;
                SQL_registro.resp64 = "Correcta";
            }
            else
            {
                resppreg64 = false;
                SQL_registro.resp64 = "Incorrecta";
            }

            if (rdbres2preg65.Checked == true)
            {
                resppreg65 = true;
                SQL_registro.resp65 = "Correcta";
            }
            else
            {
                resppreg65 = false;
                SQL_registro.resp65 = "Incorrecta";
            }
        }
コード例 #14
0
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg6.Checked == true)
            {
                if (rdbres1preg6.Text.TrimEnd() == resppreg6)
                {
                    reg.Resp6 = "Correcta";
                }
                else
                {
                    reg.Resp6 = "Incorrecta";
                }
            }
            else if (rdbres2preg6.Checked == true)
            {
                if (rdbres2preg6.Text.TrimEnd() == resppreg6)
                {
                    reg.Resp6 = "Correcta";
                }
                else
                {
                    reg.Resp6 = "Incorrecta";
                }
            }
            else if (rdbres3preg6.Checked == true)
            {
                if (rdbres3preg6.Text.TrimEnd() == resppreg6)
                {
                    reg.Resp6 = "Correcta";
                }
                else
                {
                    reg.Resp6 = "Incorrecta";
                }
            }
            else if (rdbres4preg6.Checked == true)
            {
                if (rdbres4preg6.Text.TrimEnd() == resppreg6)
                {
                    reg.Resp6 = "Correcta";
                }
                else
                {
                    reg.Resp6 = "Incorrecta";
                }
            }

            if (rdbres1preg7.Checked == true)
            {
                if (rdbres1preg7.Text.TrimEnd() == resppreg7)
                {
                    reg.Resp7 = "Correcta";
                }
                else
                {
                    reg.Resp7 = "Incorrecta";
                }
            }
            else if (rdbres2preg7.Checked == true)
            {
                if (rdbres2preg7.Text.TrimEnd() == resppreg7)
                {
                    reg.Resp7 = "Correcta";
                }
                else
                {
                    reg.Resp7 = "Incorrecta";
                }
            }
            else if (rdbres3preg7.Checked == true)
            {
                if (rdbres3preg7.Text.TrimEnd() == resppreg7)
                {
                    reg.Resp7 = "Correcta";
                }
                else
                {
                    reg.Resp7 = "Incorrecta";
                }
            }
            else if (rdbres4preg7.Checked == true)
            {
                if (rdbres4preg7.Text.TrimEnd() == resppreg7)
                {
                    reg.Resp7 = "Correcta";
                }
                else
                {
                    reg.Resp7 = "Incorrecta";
                }
            }

            if (rdbres1preg8.Checked == true)
            {
                if (rdbres1preg8.Text.TrimEnd() == resppreg8)
                {
                    reg.Resp8 = "Correcta";
                }
                else
                {
                    reg.Resp8 = "Incorrecta";
                }
            }
            else if (rdbres2preg8.Checked == true)
            {
                if (rdbres2preg8.Text.TrimEnd() == resppreg8)
                {
                    reg.Resp8 = "Correcta";
                }
                else
                {
                    reg.Resp8 = "Incorrecta";
                }
            }
            else if (rdbres3preg8.Checked == true)
            {
                if (rdbres3preg8.Text.TrimEnd() == resppreg8)
                {
                    reg.Resp8 = "Correcta";
                }
                else
                {
                    reg.Resp8 = "Incorrecta";
                }
            }
            else if (rdbres4preg8.Checked == true)
            {
                if (rdbres4preg8.Text.TrimEnd() == resppreg8)
                {
                    reg.Resp8 = "Correcta";
                }
                else
                {
                    reg.Resp8 = "Incorrecta";
                }
            }

            if (rdbres1preg9.Checked == true)
            {
                if (rdbres1preg9.Text.TrimEnd() == resppreg9)
                {
                    reg.Resp9 = "Correcta";
                }
                else
                {
                    reg.Resp9 = "Incorrecta";
                }
            }
            else if (rdbres2preg9.Checked == true)
            {
                if (rdbres2preg9.Text.TrimEnd() == resppreg9)
                {
                    reg.Resp9 = "Correcta";
                }
                else
                {
                    reg.Resp9 = "Incorrecta";
                }
            }
            else if (rdbres3preg9.Checked == true)
            {
                if (rdbres3preg9.Text.TrimEnd() == resppreg9)
                {
                    reg.Resp9 = "Correcta";
                }
                else
                {
                    reg.Resp9 = "Incorrecta";
                }
            }
            else if (rdbres4preg9.Checked == true)
            {
                if (rdbres4preg9.Text.TrimEnd() == resppreg9)
                {
                    reg.Resp9 = "Correcta";
                }
                else
                {
                    reg.Resp9 = "Incorrecta";
                }
            }

            if (rdbres1preg10.Checked == true)
            {
                if (rdbres1preg10.Text.TrimEnd() == resppreg10)
                {
                    reg.Resp10 = "Correcta";
                }
                else
                {
                    reg.Resp10 = "Incorrecta";
                }
            }
            else if (rdbres2preg10.Checked == true)
            {
                if (rdbres2preg10.Text.TrimEnd() == resppreg10)
                {
                    reg.Resp10 = "Correcta";
                }
                else
                {
                    reg.Resp10 = "Incorrecta";
                }
            }
            else if (rdbres3preg10.Checked == true)
            {
                if (rdbres3preg10.Text.TrimEnd() == resppreg10)
                {
                    reg.Resp10 = "Correcta";
                }
                else
                {
                    reg.Resp10 = "Incorrecta";
                }
            }
            else if (rdbres4preg10.Checked == true)
            {
                if (rdbres4preg10.Text.TrimEnd() == resppreg10)
                {
                    reg.Resp10 = "Correcta";
                }
                else
                {
                    reg.Resp10 = "Incorrecta";
                }
            }
        }
コード例 #15
0
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg26.Checked == true)
            {
                if (rdbres1preg26.Text.TrimEnd() == resppreg26)
                {
                    reg.Resp26 = "Correcta";
                }
                else
                {
                    reg.Resp26 = "Incorrecta";
                }
            }
            else if (rdbres2preg26.Checked == true)
            {
                if (rdbres2preg26.Text.TrimEnd() == resppreg26)
                {
                    reg.Resp26 = "Correcta";
                }
                else
                {
                    reg.Resp26 = "Incorrecta";
                }
            }
            else if (rdbres3preg26.Checked == true)
            {
                if (rdbres3preg26.Text.TrimEnd() == resppreg26)
                {
                    reg.Resp26 = "Correcta";
                }
                else
                {
                    reg.Resp26 = "Incorrecta";
                }
            }
            else if (rdbres4preg26.Checked == true)
            {
                if (rdbres4preg26.Text.TrimEnd() == resppreg26)
                {
                    reg.Resp26 = "Correcta";
                }
                else
                {
                    reg.Resp26 = "Incorrecta";
                }
            }

            if (rdbres1preg27.Checked == true)
            {
                if (rdbres1preg27.Text.TrimEnd() == resppreg27)
                {
                    reg.Resp27 = "Correcta";
                }
                else
                {
                    reg.Resp27 = "Incorrecta";
                }
            }
            else if (rdbres2preg27.Checked == true)
            {
                if (rdbres2preg27.Text.TrimEnd() == resppreg27)
                {
                    reg.Resp27 = "Correcta";
                }
                else
                {
                    reg.Resp27 = "Incorrecta";
                }
            }
            else if (rdbres3preg27.Checked == true)
            {
                if (rdbres3preg27.Text.TrimEnd() == resppreg27)
                {
                    reg.Resp27 = "Correcta";
                }
                else
                {
                    reg.Resp27 = "Incorrecta";
                }
            }
            else if (rdbres4preg27.Checked == true)
            {
                if (rdbres4preg27.Text.TrimEnd() == resppreg27)
                {
                    reg.Resp27 = "Correcta";
                }
                else
                {
                    reg.Resp27 = "Incorrecta";
                }
            }

            if (rdbres1preg28.Checked == true)
            {
                if (rdbres1preg28.Text.TrimEnd() == resppreg28)
                {
                    reg.Resp28 = "Correcta";
                }
                else
                {
                    reg.Resp28 = "Incorrecta";
                }
            }
            else if (rdbres2preg28.Checked == true)
            {
                if (rdbres2preg28.Text.TrimEnd() == resppreg28)
                {
                    reg.Resp28 = "Correcta";
                }
                else
                {
                    reg.Resp28 = "Incorrecta";
                }
            }
            else if (rdbres3preg28.Checked == true)
            {
                if (rdbres3preg28.Text.TrimEnd() == resppreg28)
                {
                    reg.Resp28 = "Correcta";
                }
                else
                {
                    reg.Resp28 = "Incorrecta";
                }
            }
            else if (rdbres4preg28.Checked == true)
            {
                if (rdbres4preg28.Text.TrimEnd() == resppreg28)
                {
                    reg.Resp28 = "Correcta";
                }
                else
                {
                    reg.Resp28 = "Incorrecta";
                }
            }

            if (rdbres1preg29.Checked == true)
            {
                if (rdbres1preg29.Text.TrimEnd() == resppreg29)
                {
                    reg.Resp29 = "Correcta";
                }
                else
                {
                    reg.Resp29 = "Incorrecta";
                }
            }
            else if (rdbres2preg29.Checked == true)
            {
                if (rdbres2preg29.Text.TrimEnd() == resppreg29)
                {
                    reg.Resp29 = "Correcta";
                }
                else
                {
                    reg.Resp29 = "Incorrecta";
                }
            }
            else if (rdbres3preg29.Checked == true)
            {
                if (rdbres3preg29.Text.TrimEnd() == resppreg29)
                {
                    reg.Resp29 = "Correcta";
                }
                else
                {
                    reg.Resp29 = "Incorrecta";
                }
            }
            else if (rdbres4preg29.Checked == true)
            {
                if (rdbres4preg29.Text.TrimEnd() == resppreg29)
                {
                    reg.Resp29 = "Correcta";
                }
                else
                {
                    reg.Resp29 = "Incorrecta";
                }
            }

            if (rdbres1preg30.Checked == true)
            {
                if (rdbres1preg30.Text.TrimEnd() == resppreg30)
                {
                    reg.Resp30 = "Correcta";
                }
                else
                {
                    reg.Resp30 = "Incorrecta";
                }
            }
            else if (rdbres2preg30.Checked == true)
            {
                if (rdbres2preg30.Text.TrimEnd() == resppreg30)
                {
                    reg.Resp30 = "Correcta";
                }
                else
                {
                    reg.Resp30 = "Incorrecta";
                }
            }
            else if (rdbres3preg30.Checked == true)
            {
                if (rdbres3preg30.Text.TrimEnd() == resppreg30)
                {
                    reg.Resp30 = "Correcta";
                }
                else
                {
                    reg.Resp30 = "Incorrecta";
                }
            }
            else if (rdbres4preg30.Checked == true)
            {
                if (rdbres4preg30.Text.TrimEnd() == resppreg30)
                {
                    reg.Resp30 = "Correcta";
                }
                else
                {
                    reg.Resp30 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg41.Checked == true)
            {
                resppreg41 = true;
                SQL_registro.resp41 = "Correcta";
            }
            else
            {
                resppreg41 = false;
                SQL_registro.resp41 = "Incorrecta";
            }

            if (rdbres4preg42.Checked == true)
            {
                resppreg42 = true;
                SQL_registro.resp42 = "Correcta";
            }
            else
            {
                resppreg42 = false;
                SQL_registro.resp42 = "Incorrecta";
            }

            if (rdbres2preg43.Checked == true)
            {
                resppreg43 = true;
                SQL_registro.resp43 = "Correcta";
            }
            else
            {
                resppreg43 = false;
                SQL_registro.resp43 = "Incorrecta";
            }

            if (rdbres4preg44.Checked == true)
            {
                resppreg44 = true;
                SQL_registro.resp44 = "Correcta";
            }
            else
            {
                resppreg44 = false;
                SQL_registro.resp44 = "Incorrecta";
            }

            if (rdbres3preg45.Checked == true)
            {
                resppreg45 = true;
                SQL_registro.resp45 = "Correcta";
            }
            else
            {
                resppreg45 = false;
                SQL_registro.resp45 = "Incorrecta";
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres3preg71.Checked == true)
            {
                resppreg71 = true;
                SQL_registro.resp71 = "Correcta";
            }
            else
            {
                resppreg71 = false;
                SQL_registro.resp71 = "Incorrecta";
            }

            if (rdbres4preg72.Checked == true)
            {
                resppreg72 = true;
                SQL_registro.resp72 = "Correcta";
            }
            else
            {
                resppreg72 = false;
                SQL_registro.resp72 = "Incorrecta";
            }

            if (rdbres2preg73.Checked == true)
            {
                resppreg73 = true;
                SQL_registro.resp73 = "Correcta";
            }
            else
            {
                resppreg73 = false;
                SQL_registro.resp73 = "Incorrecta";
            }

            if (rdbres3preg74.Checked == true)
            {
                resppreg74 = true;
                SQL_registro.resp74 = "Correcta";
            }
            else
            {
                resppreg74 = false;
                SQL_registro.resp74 = "Incorrecta";
            }

            if (rdbres1preg75.Checked == true)
            {
                resppreg75 = true;
                SQL_registro.resp75 = "Correcta";
            }
            else
            {
                resppreg75 = false;
                SQL_registro.resp75 = "Incorrecta";
            }
        }
コード例 #18
0
        private void Guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg1.Checked == true)
            {
                if (rdbres1preg1.Text.TrimEnd() == resppreg1)
                {
                    reg.Resp1 = "Correcta";
                }
                else
                {
                    reg.Resp1 = "Incorrecta";
                }
            }
            else if (rdbres2preg1.Checked == true)
            {
                if (rdbres2preg1.Text.TrimEnd() == resppreg1)
                {
                    reg.Resp1 = "Correcta";
                }
                else
                {
                    reg.Resp1 = "Incorrecta";
                }
            }
            else if (rdbres3preg1.Checked == true)
            {
                if (rdbres3preg1.Text.TrimEnd() == resppreg1)
                {
                    reg.Resp1 = "Correcta";
                }
                else
                {
                    reg.Resp1 = "Incorrecta";
                }
            }
            else if (rdbres4preg1.Checked == true)
            {
                if (rdbres4preg1.Text.TrimEnd() == resppreg1)
                {
                    reg.Resp1 = "Correcta";
                }
                else
                {
                    reg.Resp1 = "Incorrecta";
                }
            }

            if (rdbres1preg2.Checked == true)
            {
                if (rdbres1preg2.Text.TrimEnd() == resppreg2)
                {
                    reg.Resp2 = "Correcta";
                }
                else
                {
                    reg.Resp2 = "Incorrecta";
                }
            }
            else if (rdbres2preg2.Checked == true)
            {
                if (rdbres2preg2.Text.TrimEnd() == resppreg2)
                {
                    reg.Resp2 = "Correcta";
                }
                else
                {
                    reg.Resp2 = "Incorrecta";
                }
            }
            else if (rdbres3preg2.Checked == true)
            {
                if (rdbres3preg2.Text.TrimEnd() == resppreg2)
                {
                    reg.Resp2 = "Correcta";
                }
                else
                {
                    reg.Resp2 = "Incorrecta";
                }
            }
            else if (rdbres4preg2.Checked == true)
            {
                if (rdbres4preg2.Text.TrimEnd() == resppreg2)
                {
                    reg.Resp2 = "Correcta";
                }
                else
                {
                    reg.Resp2 = "Incorrecta";
                }
            }

            if (rdbres1preg3.Checked == true)
            {
                if (rdbres1preg3.Text.TrimEnd() == resppreg3)
                {
                    reg.Resp3 = "Correcta";
                }
                else
                {
                    reg.Resp3 = "Incorrecta";
                }
            }
            else if (rdbres2preg3.Checked == true)
            {
                if (rdbres2preg3.Text.TrimEnd() == resppreg3)
                {
                    reg.Resp3 = "Correcta";
                }
                else
                {
                    reg.Resp3 = "Incorrecta";
                }
            }
            else if (rdbres3preg3.Checked == true)
            {
                if (rdbres3preg3.Text.TrimEnd() == resppreg3)
                {
                    reg.Resp3 = "Correcta";
                }
                else
                {
                    reg.Resp3 = "Incorrecta";
                }
            }
            else if (rdbres4preg3.Checked == true)
            {
                if (rdbres4preg3.Text.TrimEnd() == resppreg3)
                {
                    reg.Resp3 = "Correcta";
                }
                else
                {
                    reg.Resp3 = "Incorrecta";
                }
            }

            if (rdbres1preg4.Checked == true)
            {
                if (rdbres1preg4.Text.TrimEnd() == resppreg4)
                {
                    reg.Resp4 = "Correcta";
                }
                else
                {
                    reg.Resp4 = "Incorrecta";
                }
            }
            else if (rdbres2preg4.Checked == true)
            {
                if (rdbres2preg4.Text.TrimEnd() == resppreg4)
                {
                    reg.Resp4 = "Correcta";
                }
                else
                {
                    reg.Resp4 = "Incorrecta";
                }
            }
            else if (rdbres3preg4.Checked == true)
            {
                if (rdbres3preg4.Text.TrimEnd() == resppreg4)
                {
                    reg.Resp4 = "Correcta";
                }
                else
                {
                    reg.Resp4 = "Incorrecta";
                }
            }
            else if (rdbres4preg4.Checked == true)
            {
                if (rdbres4preg4.Text.TrimEnd() == resppreg4)
                {
                    reg.Resp4 = "Correcta";
                }
                else
                {
                    reg.Resp4 = "Incorrecta";
                }
            }

            if (rdbres1preg5.Checked == true)
            {
                if (rdbres1preg5.Text.TrimEnd() == resppreg5)
                {
                    reg.Resp5 = "Correcta";
                }
                else
                {
                    reg.Resp5 = "Incorrecta";
                }
            }
            else if (rdbres2preg5.Checked == true)
            {
                if (rdbres2preg5.Text.TrimEnd() == resppreg5)
                {
                    reg.Resp5 = "Correcta";
                }
                else
                {
                    reg.Resp5 = "Incorrecta";
                }
            }
            else if (rdbres3preg5.Checked == true)
            {
                if (rdbres3preg5.Text.TrimEnd() == resppreg5)
                {
                    reg.Resp5 = "Correcta";
                }
                else
                {
                    reg.Resp5 = "Incorrecta";
                }
            }
            else if (rdbres4preg5.Checked == true)
            {
                if (rdbres4preg5.Text.TrimEnd() == resppreg5)
                {
                    reg.Resp5 = "Correcta";
                }
                else
                {
                    reg.Resp5 = "Incorrecta";
                }
            }
        }
        private void Calificar()
        {
            SQL_registro sql = new SQL_registro();

            int nota = 0;
            int nota_final = 0;

            if (Exam_1.resppreg1 == true)
            {
                nota += 1;
            }

            if (Exam_1.resppreg2 == true)
            {
                nota += 1;
            }

            if (Exam_1.resppreg3 == true)
            {
                nota += 1;
            }

            if (Exam_1.resppreg4 == true)
            {
                nota += 1;
            }

            if (Exam_1.resppreg5 == true)
            {
                nota += 1;
            }

            if (Exam_2.resppreg6 == true)
            {
                nota += 1;
            }

            if (Exam_2.resppreg7 == true)
            {
                nota += 1;
            }

            if (Exam_2.resppreg8 == true)
            {
                nota += 1;
            }

            if (Exam_2.resppreg9 == true)
            {
                nota += 1;
            }

            if (Exam_2.resppreg10 == true)
            {
                nota += 1;
            }

            if (Exam_3.resppreg11 == true)
            {
                nota += 1;
            }

            if (Exam_3.resppreg12 == true)
            {
                nota += 1;
            }

            if (Exam_3.resppreg13 == true)
            {
                nota += 1;
            }

            if (Exam_3.resppreg14 == true)
            {
                nota += 1;
            }

            if (Exam_3.resppreg15 == true)
            {
                nota += 1;
            }

            if (Exam_4.resppreg16 == true)
            {
                nota += 1;
            }

            if (Exam_4.resppreg17 == true)
            {
                nota += 1;
            }

            if (Exam_4.resppreg18 == true)
            {
                nota += 1;
            }

            if (Exam_4.resppreg19 == true)
            {
                nota += 1;
            }

            if (Exam_4.resppreg20 == true)
            {
                nota += 1;
            }

            if (Exam_5.resppreg21 == true)
            {
                nota += 1;
            }

            if (Exam_5.resppreg22 == true)
            {
                nota += 1;
            }

            if (Exam_5.resppreg23 == true)
            {
                nota += 1;
            }

            if (Exam_5.resppreg24 == true)
            {
                nota += 1;
            }

            if (Exam_5.resppreg25 == true)
            {
                nota += 1;
            }

            if (Exam_6.resppreg26 == true)
            {
                nota += 1;
            }

            if (Exam_6.resppreg27 == true)
            {
                nota += 1;
            }

            if (Exam_6.resppreg28 == true)
            {
                nota += 1;
            }

            if (Exam_6.resppreg29 == true)
            {
                nota += 1;
            }

            if (Exam_6.resppreg30 == true)
            {
                nota += 1;
            }

            if (Exam_7.resppreg31 == true)
            {
                nota += 1;
            }

            if (Exam_7.resppreg32 == true)
            {
                nota += 1;
            }

            if (Exam_7.resppreg33 == true)
            {
                nota += 1;
            }

            if (Exam_7.resppreg34 == true)
            {
                nota += 1;
            }

            if (Exam_7.resppreg35 == true)
            {
                nota += 1;
            }

            if (Exam_8.resppreg36 == true)
            {
                nota += 1;
            }

            if (Exam_8.resppreg37 == true)
            {
                nota += 1;
            }

            if (Exam_8.resppreg38 == true)
            {
                nota += 1;
            }

            if (Exam_8.resppreg39 == true)
            {
                nota += 1;
            }

            if (Exam_8.resppreg40 == true)
            {
                nota += 1;
            }

            if (Exam_9.resppreg41 == true)
            {
                nota += 1;
            }

            if (Exam_9.resppreg42 == true)
            {
                nota += 1;
            }

            if (Exam_9.resppreg43 == true)
            {
                nota += 1;
            }

            if (Exam_9.resppreg44 == true)
            {
                nota += 1;
            }

            if (Exam_9.resppreg45 == true)
            {
                nota += 1;
            }

            if (Exam_10.resppreg46 == true)
            {
                nota += 1;
            }

            if (Exam_10.resppreg47 == true)
            {
                nota += 1;
            }

            if (Exam_10.resppreg48 == true)
            {
                nota += 1;
            }

            if (Exam_10.resppreg49 == true)
            {
                nota += 1;
            }

            if (Exam_10.resppreg50 == true)
            {
                nota += 1;
            }

            if (Exam_11.resppreg51 == true)
            {
                nota += 1;
            }

            if (Exam_11.resppreg52 == true)
            {
                nota += 1;
            }

            if (Exam_11.resppreg53 == true)
            {
                nota += 1;
            }

            if (Exam_11.resppreg54 == true)
            {
                nota += 1;
            }

            if (Exam_11.resppreg55 == true)
            {
                nota += 1;
            }

            if (Exam_12.resppreg56 == true)
            {
                nota += 1;
            }

            if (Exam_12.resppreg57 == true)
            {
                nota += 1;
            }

            if (Exam_12.resppreg58 == true)
            {
                nota += 1;
            }

            if (Exam_12.resppreg59 == true)
            {
                nota += 1;
            }

            if (Exam_12.resppreg60 == true)
            {
                nota += 1;
            }

            if (Exam_13.resppreg61 == true)
            {
                nota += 1;
            }

            if (Exam_13.resppreg62 == true)
            {
                nota += 1;
            }

            if (Exam_13.resppreg63 == true)
            {
                nota += 1;
            }

            if (Exam_13.resppreg64 == true)
            {
                nota += 1;
            }

            if (Exam_13.resppreg65 == true)
            {
                nota += 1;
            }

            if (Exam_14.resppreg66 == true)
            {
                nota += 1;
            }

            if (Exam_14.resppreg67 == true)
            {
                nota += 1;
            }

            if (Exam_14.resppreg68 == true)
            {
                nota += 1;
            }

            if (Exam_14.resppreg69 == true)
            {
                nota += 1;
            }

            if (Exam_14.resppreg70 == true)
            {
                nota += 1;
            }

            if (Exam_15.resppreg71 == true)
            {
                nota += 1;
            }

            if (Exam_15.resppreg72 == true)
            {
                nota += 1;
            }

            if (Exam_15.resppreg73 == true)
            {
                nota += 1;
            }

            if (Exam_15.resppreg74 == true)
            {
                nota += 1;
            }

            if (Exam_15.resppreg75 == true)
            {
                nota += 1;
            }

            nota_final = (nota * 100) / 75;

            lblnota.Text = nota_final.ToString();

            sql.Registro();
        }
コード例 #20
0
        private void Calificar()
        {
            SQL_registro sql = new SQL_registro();

            int nota = 0;
            int nota_final = 0;

            if (sql.Resp1 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp2 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp3 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp4 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp5 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp6 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp7 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp8 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp9 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp10 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp11 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp12 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp13 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp14 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp15 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp16 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp17 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp18 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp19 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp20 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp21 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp22 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp23 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp24 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp25 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp26 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp27 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp28 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp29 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp30 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp31 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp32 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp33 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp34 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp35 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp36 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp37 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp38 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp39 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp40 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp41 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp42 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp43 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp44 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp45 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp46 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp47 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp48 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp49 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp50 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp51 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp52 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp53 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp54 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp55 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp56 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp57 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp58 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp59 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp60 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp61 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp62 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp63 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp64 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp65 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp66 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp67 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp68 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp69 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp70 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp71 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp72 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp73 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp74 == "Correcta")
            {
                nota += 1;
            }

            if (sql.Resp75 == "Correcta")
            {
                nota += 1;
            }

            nota_final = (nota * 100) / 75;

            lblnota.Text = nota_final.ToString();

            SQL_registro.Nota = nota_final;

            sql.Registro();
        }
コード例 #21
0
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg16.Checked == true)
            {
                if (rdbres1preg16.Text.TrimEnd() == resppreg16)
                {
                    reg.Resp16 = "Correcta";
                }
                else
                {
                    reg.Resp16 = "Incorrecta";
                }
            }
            else if (rdbres2preg16.Checked == true)
            {
                if (rdbres2preg16.Text.TrimEnd() == resppreg16)
                {
                    reg.Resp16 = "Correcta";
                }
                else
                {
                    reg.Resp16 = "Incorrecta";
                }
            }
            else if (rdbres3preg16.Checked == true)
            {
                if (rdbres3preg16.Text.TrimEnd() == resppreg16)
                {
                    reg.Resp16 = "Correcta";
                }
                else
                {
                    reg.Resp16 = "Incorrecta";
                }
            }
            else if (rdbres4preg16.Checked == true)
            {
                if (rdbres4preg16.Text.TrimEnd() == resppreg16)
                {
                    reg.Resp16 = "Correcta";
                }
                else
                {
                    reg.Resp16 = "Incorrecta";
                }
            }

            if (rdbres1preg17.Checked == true)
            {
                if (rdbres1preg17.Text.TrimEnd() == resppreg17)
                {
                    reg.Resp17 = "Correcta";
                }
                else
                {
                    reg.Resp17 = "Incorrecta";
                }
            }
            else if (rdbres2preg17.Checked == true)
            {
                if (rdbres2preg17.Text.TrimEnd() == resppreg17)
                {
                    reg.Resp17 = "Correcta";
                }
                else
                {
                    reg.Resp17 = "Incorrecta";
                }
            }
            else if (rdbres3preg17.Checked == true)
            {
                if (rdbres3preg17.Text.TrimEnd() == resppreg17)
                {
                    reg.Resp17 = "Correcta";
                }
                else
                {
                    reg.Resp17 = "Incorrecta";
                }
            }
            else if (rdbres4preg17.Checked == true)
            {
                if (rdbres4preg17.Text.TrimEnd() == resppreg17)
                {
                    reg.Resp17 = "Correcta";
                }
                else
                {
                    reg.Resp17 = "Incorrecta";
                }
            }

            if (rdbres1preg18.Checked == true)
            {
                if (rdbres1preg18.Text.TrimEnd() == resppreg18)
                {
                    reg.Resp18 = "Correcta";
                }
                else
                {
                    reg.Resp18 = "Incorrecta";
                }
            }
            else if (rdbres2preg18.Checked == true)
            {
                if (rdbres2preg18.Text.TrimEnd() == resppreg18)
                {
                    reg.Resp18 = "Correcta";
                }
                else
                {
                    reg.Resp18 = "Incorrecta";
                }
            }
            else if (rdbres3preg18.Checked == true)
            {
                if (rdbres3preg18.Text.TrimEnd() == resppreg18)
                {
                    reg.Resp18 = "Correcta";
                }
                else
                {
                    reg.Resp18 = "Incorrecta";
                }
            }
            else if (rdbres4preg18.Checked == true)
            {
                if (rdbres4preg18.Text.TrimEnd() == resppreg18)
                {
                    reg.Resp18 = "Correcta";
                }
                else
                {
                    reg.Resp18 = "Incorrecta";
                }
            }

            if (rdbres1preg19.Checked == true)
            {
                if (rdbres1preg19.Text.TrimEnd() == resppreg19)
                {
                    reg.Resp19 = "Correcta";
                }
                else
                {
                    reg.Resp19 = "Incorrecta";
                }
            }
            else if (rdbres2preg19.Checked == true)
            {
                if (rdbres2preg19.Text.TrimEnd() == resppreg19)
                {
                    reg.Resp19 = "Correcta";
                }
                else
                {
                    reg.Resp19 = "Incorrecta";
                }
            }
            else if (rdbres3preg19.Checked == true)
            {
                if (rdbres3preg19.Text.TrimEnd() == resppreg19)
                {
                    reg.Resp19 = "Correcta";
                }
                else
                {
                    reg.Resp19 = "Incorrecta";
                }
            }
            else if (rdbres4preg19.Checked == true)
            {
                if (rdbres4preg19.Text.TrimEnd() == resppreg19)
                {
                    reg.Resp19 = "Correcta";
                }
                else
                {
                    reg.Resp19 = "Incorrecta";
                }
            }

            if (rdbres1preg20.Checked == true)
            {
                if (rdbres1preg20.Text.TrimEnd() == resppreg20)
                {
                    reg.Resp20 = "Correcta";
                }
                else
                {
                    reg.Resp20 = "Incorrecta";
                }
            }
            else if (rdbres2preg20.Checked == true)
            {
                if (rdbres2preg20.Text.TrimEnd() == resppreg20)
                {
                    reg.Resp20 = "Correcta";
                }
                else
                {
                    reg.Resp20 = "Incorrecta";
                }
            }
            else if (rdbres3preg20.Checked == true)
            {
                if (rdbres3preg20.Text.TrimEnd() == resppreg20)
                {
                    reg.Resp20 = "Correcta";
                }
                else
                {
                    reg.Resp20 = "Incorrecta";
                }
            }
            else if (rdbres4preg20.Checked == true)
            {
                if (rdbres4preg20.Text.TrimEnd() == resppreg20)
                {
                    reg.Resp20 = "Correcta";
                }
                else
                {
                    reg.Resp20 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg46.Checked == true)
            {
                resppreg46 = true;
                SQL_registro.resp46 = "Correcta";
            }
            else
            {
                resppreg46 = false;
                SQL_registro.resp46 = "Incorrecta";
            }

            if (rdbres1preg47.Checked == true)
            {
                resppreg47 = true;
                SQL_registro.resp47 = "Correcta";
            }
            else
            {
                resppreg47 = false;
                SQL_registro.resp47 = "Incorrecta";
            }

            if (rdbres2preg48.Checked == true)
            {
                resppreg48 = true;
                SQL_registro.resp48 = "Correcta";
            }
            else
            {
                resppreg48 = false;
                SQL_registro.resp48 = "Incorrecta";
            }

            if (rdbres1preg49.Checked == true)
            {
                resppreg49 = true;
                SQL_registro.resp49 = "Correcta";
            }
            else
            {
                resppreg49 = false;
                reg.Resp49 = "Incorrecta";
            }

            if (rdbres1preg50.Checked == true)
            {
                resppreg50 = true;
                SQL_registro.resp50 = "Correcta";
            }
            else
            {
                resppreg50 = false;
                SQL_registro.resp50 = "Incorrecta";
            }
        }
コード例 #23
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg51.Checked == true)
            {
                if (rdbres1preg51.Text.TrimEnd() == resppreg51)
                {
                    reg.Resp51 = "Correcta";
                }
                else
                {
                    reg.Resp51 = "Incorrecta";
                }
            }
            else if (rdbres2preg51.Checked == true)
            {
                if (rdbres2preg51.Text.TrimEnd() == resppreg51)
                {
                    reg.Resp51 = "Correcta";
                }
                else
                {
                    reg.Resp51 = "Incorrecta";
                }
            }
            else if (rdbres3preg51.Checked == true)
            {
                if (rdbres3preg51.Text.TrimEnd() == resppreg51)
                {
                    reg.Resp51 = "Correcta";
                }
                else
                {
                    reg.Resp51 = "Incorrecta";
                }
            }
            else if (rdbres4preg51.Checked == true)
            {
                if (rdbres4preg51.Text.TrimEnd() == resppreg51)
                {
                    reg.Resp51 = "Correcta";
                }
                else
                {
                    reg.Resp51 = "Incorrecta";
                }
            }

            if (rdbres1preg52.Checked == true)
            {
                if (rdbres1preg52.Text.TrimEnd() == resppreg52)
                {
                    reg.Resp52 = "Correcta";
                }
                else
                {
                    reg.Resp52 = "Incorrecta";
                }
            }
            else if (rdbres2preg52.Checked == true)
            {
                if (rdbres2preg52.Text.TrimEnd() == resppreg52)
                {
                    reg.Resp52 = "Correcta";
                }
                else
                {
                    reg.Resp52 = "Incorrecta";
                }
            }
            else if (rdbres3preg52.Checked == true)
            {
                if (rdbres3preg52.Text.TrimEnd() == resppreg52)
                {
                    reg.Resp52 = "Correcta";
                }
                else
                {
                    reg.Resp52 = "Incorrecta";
                }
            }
            else if (rdbres4preg52.Checked == true)
            {
                if (rdbres4preg52.Text.TrimEnd() == resppreg52)
                {
                    reg.Resp52 = "Correcta";
                }
                else
                {
                    reg.Resp52 = "Incorrecta";
                }
            }

            if (rdbres1preg53.Checked == true)
            {
                if (rdbres1preg53.Text.TrimEnd() == resppreg53)
                {
                    reg.Resp53 = "Correcta";
                }
                else
                {
                    reg.Resp53 = "Incorrecta";
                }
            }
            else if (rdbres2preg53.Checked == true)
            {
                if (rdbres2preg53.Text.TrimEnd() == resppreg53)
                {
                    reg.Resp53 = "Correcta";
                }
                else
                {
                    reg.Resp53 = "Incorrecta";
                }
            }
            else if (rdbres3preg53.Checked == true)
            {
                if (rdbres3preg53.Text.TrimEnd() == resppreg53)
                {
                    reg.Resp53 = "Correcta";
                }
                else
                {
                    reg.Resp53 = "Incorrecta";
                }
            }
            else if (rdbres4preg53.Checked == true)
            {
                if (rdbres4preg53.Text.TrimEnd() == resppreg53)
                {
                    reg.Resp53 = "Correcta";
                }
                else
                {
                    reg.Resp53 = "Incorrecta";
                }
            }

            if (rdbres1preg54.Checked == true)
            {
                if (rdbres1preg54.Text.TrimEnd() == resppreg54)
                {
                    reg.Resp54 = "Correcta";
                }
                else
                {
                    reg.Resp54 = "Incorrecta";
                }
            }
            else if (rdbres2preg54.Checked == true)
            {
                if (rdbres2preg54.Text.TrimEnd() == resppreg54)
                {
                    reg.Resp54 = "Correcta";
                }
                else
                {
                    reg.Resp54 = "Incorrecta";
                }
            }
            else if (rdbres3preg54.Checked == true)
            {
                if (rdbres3preg54.Text.TrimEnd() == resppreg54)
                {
                    reg.Resp54 = "Correcta";
                }
                else
                {
                    reg.Resp54 = "Incorrecta";
                }
            }
            else if (rdbres4preg54.Checked == true)
            {
                if (rdbres4preg54.Text.TrimEnd() == resppreg54)
                {
                    reg.Resp54 = "Correcta";
                }
                else
                {
                    reg.Resp54 = "Incorrecta";
                }
            }

            if (rdbres1preg55.Checked == true)
            {
                if (rdbres1preg55.Text.TrimEnd() == resppreg55)
                {
                    reg.Resp55 = "Correcta";
                }
                else
                {
                    reg.Resp55 = "Incorrecta";
                }
            }
            else if (rdbres2preg55.Checked == true)
            {
                if (rdbres2preg55.Text.TrimEnd() == resppreg55)
                {
                    reg.Resp55 = "Correcta";
                }
                else
                {
                    reg.Resp55 = "Incorrecta";
                }
            }
            else if (rdbres3preg55.Checked == true)
            {
                if (rdbres3preg55.Text.TrimEnd() == resppreg55)
                {
                    reg.Resp55 = "Correcta";
                }
                else
                {
                    reg.Resp55 = "Incorrecta";
                }
            }
            else if (rdbres4preg55.Checked == true)
            {
                if (rdbres4preg55.Text.TrimEnd() == resppreg55)
                {
                    reg.Resp55 = "Correcta";
                }
                else
                {
                    reg.Resp55 = "Incorrecta";
                }
            }
        }
コード例 #24
0
        public void busqueda()
        {
            pnl_registro.Visible = true;

            SQL_registro sql = new SQL_registro();
            sql.Nom_usu1 = txt_nombre.Text.TrimEnd();
            sql.Seccion = ddl_seccion.SelectedItem.Text.TrimEnd();
            sql.JalarUsuarios();

            lbl_nombre.Text = sql.Nom_usu1;
            lbl_seccion.Text = sql.Seccion;
            lbl_preg1.Text = sql.Resp1;
            lbl_preg2.Text = sql.Resp2;
            lbl_preg3.Text = sql.Resp3;
            lbl_preg4.Text = sql.Resp4;
            lbl_preg5.Text = sql.Resp5;
            lbl_preg6.Text = sql.Resp6;
            lbl_preg7.Text = sql.Resp7;
            lbl_preg8.Text = sql.Resp8;
            lbl_preg9.Text = sql.Resp9;
            lbl_preg10.Text = sql.Resp10;
            lbl_preg11.Text = sql.Resp11;
            lbl_preg12.Text = sql.Resp12;
            lbl_preg13.Text = sql.Resp13;
            lbl_preg14.Text = sql.Resp14;
            lbl_preg15.Text = sql.Resp15;
            lbl_preg16.Text = sql.Resp16;
            lbl_preg17.Text = sql.Resp17;
            lbl_preg18.Text = sql.Resp18;
            lbl_preg19.Text = sql.Resp19;
            lbl_preg20.Text = sql.Resp20;

            lbl_preg21.Text = sql.Resp21;
            lbl_preg22.Text = sql.Resp22;
            lbl_preg23.Text = sql.Resp23;
            lbl_preg24.Text = sql.Resp24;
            lbl_preg25.Text = sql.Resp25;
            lbl_preg26.Text = sql.Resp26;
            lbl_preg27.Text = sql.Resp27;
            lbl_preg28.Text = sql.Resp28;
            lbl_preg29.Text = sql.Resp29;
            lbl_preg30.Text = sql.Resp30;
            lbl_preg31.Text = sql.Resp31;
            lbl_preg32.Text = sql.Resp32;
            lbl_preg33.Text = sql.Resp33;
            lbl_preg34.Text = sql.Resp34;
            lbl_preg35.Text = sql.Resp35;
            lbl_preg36.Text = sql.Resp36;
            lbl_preg37.Text = sql.Resp37;
            lbl_preg38.Text = sql.Resp38;
            lbl_preg39.Text = sql.Resp39;
            lbl_preg40.Text = sql.Resp40;

            lbl_preg41.Text = sql.Resp41;
            lbl_preg42.Text = sql.Resp42;
            lbl_preg43.Text = sql.Resp43;
            lbl_preg44.Text = sql.Resp44;
            lbl_preg45.Text = sql.Resp45;
            lbl_preg46.Text = sql.Resp46;
            lbl_preg47.Text = sql.Resp47;
            lbl_preg48.Text = sql.Resp48;
            lbl_preg49.Text = sql.Resp49;
            lbl_preg50.Text = sql.Resp50;
            lbl_preg51.Text = sql.Resp51;
            lbl_preg52.Text = sql.Resp52;
            lbl_preg53.Text = sql.Resp53;
            lbl_preg54.Text = sql.Resp54;
            lbl_preg55.Text = sql.Resp55;
            lbl_preg56.Text = sql.Resp56;
            lbl_preg57.Text = sql.Resp57;
            lbl_preg58.Text = sql.Resp58;
            lbl_preg59.Text = sql.Resp59;
            lbl_preg60.Text = sql.Resp60;

            lbl_preg61.Text = sql.Resp61;
            lbl_preg62.Text = sql.Resp62;
            lbl_preg63.Text = sql.Resp63;
            lbl_preg64.Text = sql.Resp64;
            lbl_preg65.Text = sql.Resp65;
            lbl_preg66.Text = sql.Resp66;
            lbl_preg67.Text = sql.Resp67;
            lbl_preg68.Text = sql.Resp68;
            lbl_preg69.Text = sql.Resp69;
            lbl_preg70.Text = sql.Resp70;
            lbl_preg71.Text = sql.Resp71;
            lbl_preg72.Text = sql.Resp72;
            lbl_preg73.Text = sql.Resp73;
            lbl_preg74.Text = sql.Resp74;
            lbl_preg75.Text = sql.Resp75;
        }
コード例 #25
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg61.Checked == true)
            {
                if (rdbres1preg61.Text.TrimEnd() == resppreg61)
                {
                    reg.Resp61 = "Correcta";
                }
                else
                {
                    reg.Resp61 = "Incorrecta";
                }
            }
            else if (rdbres2preg61.Checked == true)
            {
                if (rdbres2preg61.Text.TrimEnd() == resppreg61)
                {
                    reg.Resp61 = "Correcta";
                }
                else
                {
                    reg.Resp61 = "Incorrecta";
                }
            }
            else if (rdbres3preg61.Checked == true)
            {
                if (rdbres3preg61.Text.TrimEnd() == resppreg61)
                {
                    reg.Resp61 = "Correcta";
                }
                else
                {
                    reg.Resp61 = "Incorrecta";
                }
            }
            else if (rdbres4preg61.Checked == true)
            {
                if (rdbres4preg61.Text.TrimEnd() == resppreg61)
                {
                    reg.Resp61 = "Correcta";
                }
                else
                {
                    reg.Resp61 = "Incorrecta";
                }
            }

            if (rdbres1preg62.Checked == true)
            {
                if (rdbres1preg62.Text.TrimEnd() == resppreg62)
                {
                    reg.Resp62 = "Correcta";
                }
                else
                {
                    reg.Resp62 = "Incorrecta";
                }
            }
            else if (rdbres2preg62.Checked == true)
            {
                if (rdbres2preg62.Text.TrimEnd() == resppreg62)
                {
                    reg.Resp62 = "Correcta";
                }
                else
                {
                    reg.Resp62 = "Incorrecta";
                }
            }
            else if (rdbres3preg62.Checked == true)
            {
                if (rdbres3preg62.Text.TrimEnd() == resppreg62)
                {
                    reg.Resp62 = "Correcta";
                }
                else
                {
                    reg.Resp62 = "Incorrecta";
                }
            }
            else if (rdbres4preg62.Checked == true)
            {
                if (rdbres4preg62.Text.TrimEnd() == resppreg62)
                {
                    reg.Resp62 = "Correcta";
                }
                else
                {
                    reg.Resp62 = "Incorrecta";
                }
            }

            if (rdbres1preg63.Checked == true)
            {
                if (rdbres1preg63.Text.TrimEnd() == resppreg63)
                {
                    reg.Resp63 = "Correcta";
                }
                else
                {
                    reg.Resp63 = "Incorrecta";
                }
            }
            else if (rdbres2preg63.Checked == true)
            {
                if (rdbres2preg63.Text.TrimEnd() == resppreg63)
                {
                    reg.Resp63 = "Correcta";
                }
                else
                {
                    reg.Resp63 = "Incorrecta";
                }
            }
            else if (rdbres3preg63.Checked == true)
            {
                if (rdbres3preg63.Text.TrimEnd() == resppreg63)
                {
                    reg.Resp63 = "Correcta";
                }
                else
                {
                    reg.Resp63 = "Incorrecta";
                }
            }
            else if (rdbres4preg63.Checked == true)
            {
                if (rdbres4preg63.Text.TrimEnd() == resppreg63)
                {
                    reg.Resp63 = "Correcta";
                }
                else
                {
                    reg.Resp63 = "Incorrecta";
                }
            }

            if (rdbres1preg64.Checked == true)
            {
                if (rdbres1preg64.Text.TrimEnd() == resppreg64)
                {
                    reg.Resp64 = "Correcta";
                }
                else
                {
                    reg.Resp64 = "Incorrecta";
                }
            }
            else if (rdbres2preg64.Checked == true)
            {
                if (rdbres2preg64.Text.TrimEnd() == resppreg64)
                {
                    reg.Resp64 = "Correcta";
                }
                else
                {
                    reg.Resp64 = "Incorrecta";
                }
            }
            else if (rdbres3preg64.Checked == true)
            {
                if (rdbres3preg64.Text.TrimEnd() == resppreg64)
                {
                    reg.Resp64 = "Correcta";
                }
                else
                {
                    reg.Resp64 = "Incorrecta";
                }
            }
            else if (rdbres4preg64.Checked == true)
            {
                if (rdbres4preg64.Text.TrimEnd() == resppreg64)
                {
                    reg.Resp64 = "Correcta";
                }
                else
                {
                    reg.Resp64 = "Incorrecta";
                }
            }

            if (rdbres1preg65.Checked == true)
            {
                if (rdbres1preg65.Text.TrimEnd() == resppreg65)
                {
                    reg.Resp65 = "Correcta";
                }
                else
                {
                    reg.Resp65 = "Incorrecta";
                }
            }
            else if (rdbres2preg65.Checked == true)
            {
                if (rdbres2preg65.Text.TrimEnd() == resppreg65)
                {
                    reg.Resp65 = "Correcta";
                }
                else
                {
                    reg.Resp65 = "Incorrecta";
                }
            }
            else if (rdbres3preg65.Checked == true)
            {
                if (rdbres3preg65.Text.TrimEnd() == resppreg65)
                {
                    reg.Resp65 = "Correcta";
                }
                else
                {
                    reg.Resp65 = "Incorrecta";
                }
            }
            else if (rdbres4preg65.Checked == true)
            {
                if (rdbres4preg65.Text.TrimEnd() == resppreg65)
                {
                    reg.Resp65 = "Correcta";
                }
                else
                {
                    reg.Resp65 = "Incorrecta";
                }
            }
        }
コード例 #26
0
        public void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg21.Checked == true)
            {
                if (rdbres1preg21.Text.TrimEnd() == resppreg21)
                {
                    reg.Resp21 = "Correcta";
                }
                else
                {
                    reg.Resp21 = "Incorrecta";
                }
            }
            else if (rdbres2preg21.Checked == true)
            {
                if (rdbres2preg21.Text.TrimEnd() == resppreg21)
                {
                    reg.Resp21 = "Correcta";
                }
                else
                {
                    reg.Resp21 = "Incorrecta";
                }
            }
            else if (rdbres3preg21.Checked == true)
            {
                if (rdbres3preg21.Text.TrimEnd() == resppreg21)
                {
                    reg.Resp21 = "Correcta";
                }
                else
                {
                    reg.Resp21 = "Incorrecta";
                }
            }
            else if (rdbres4preg21.Checked == true)
            {
                if (rdbres4preg21.Text.TrimEnd() == resppreg21)
                {
                    reg.Resp21 = "Correcta";
                }
                else
                {
                    reg.Resp21 = "Incorrecta";
                }
            }

            if (rdbres1preg22.Checked == true)
            {
                if (rdbres1preg22.Text.TrimEnd() == resppreg22)
                {
                    reg.Resp22 = "Correcta";                }
                else
                {
                    reg.Resp22 = "Incorrecta";
                }
            }
            else if (rdbres2preg22.Checked == true)
            {
                if (rdbres2preg22.Text.TrimEnd() == resppreg22)
                {
                    reg.Resp22 = "Correcta";
                }
                else
                {
                    reg.Resp22 = "Incorrecta";
                }
            }
            else if (rdbres3preg22.Checked == true)
            {
                if (rdbres3preg22.Text.TrimEnd() == resppreg22)
                {
                    reg.Resp22 = "Correcta";
                }
                else
                {
                    reg.Resp22 = "Incorrecta";
                }
            }
            else if (rdbres4preg22.Checked == true)
            {
                if (rdbres4preg22.Text.TrimEnd() == resppreg22)
                {
                    reg.Resp22 = "Correcta";
                }
                else
                {
                    reg.Resp22 = "Incorrecta";
                }
            }

            if (rdbres1preg23.Checked == true)
            {
                if (rdbres1preg23.Text.TrimEnd() == resppreg23)
                {
                    reg.Resp23 = "Correcta";
                }
                else
                {
                    reg.Resp23 = "Incorrecta";
                }
            }
            else if (rdbres2preg23.Checked == true)
            {
                if (rdbres2preg23.Text.TrimEnd() == resppreg23)
                {
                    reg.Resp23 = "Correcta";
                }
                else
                {
                    reg.Resp23 = "Incorrecta";
                }
            }
            else if (rdbres3preg23.Checked == true)
            {
                if (rdbres3preg23.Text.TrimEnd() == resppreg23)
                {
                    reg.Resp23 = "Correcta";
                }
                else
                {
                    reg.Resp23 = "Incorrecta";
                }
            }
            else if (rdbres4preg23.Checked == true)
            {
                if (rdbres4preg23.Text.TrimEnd() == resppreg23)
                {
                    reg.Resp23 = "Correcta";
                }
                else
                {
                    reg.Resp23 = "Incorrecta";
                }
            }

            if (rdbres1preg24.Checked == true)
            {
                if (rdbres1preg24.Text.TrimEnd() == resppreg24)
                {
                    reg.Resp24 = "Correcta";
                }
                else
                {
                    reg.Resp24 = "Incorrecta";
                }
            }
            else if (rdbres2preg24.Checked == true)
            {
                if (rdbres2preg24.Text.TrimEnd() == resppreg24)
                {
                    reg.Resp24 = "Correcta";
                }
                else
                {
                    reg.Resp24 = "Incorrecta";
                }
            }
            else if (rdbres3preg24.Checked == true)
            {
                if (rdbres3preg24.Text.TrimEnd() == resppreg24)
                {
                    reg.Resp24 = "Correcta";
                }
                else
                {
                    reg.Resp24 = "Incorrecta";
                }
            }
            else if (rdbres4preg24.Checked == true)
            {
                if (rdbres4preg24.Text.TrimEnd() == resppreg24)
                {
                    reg.Resp24 = "Correcta";
                }
                else
                {
                    reg.Resp24 = "Incorrecta";
                }
            }

            if (rdbres1preg25.Checked == true)
            {
                if (rdbres1preg25.Text.TrimEnd() == resppreg25)
                {
                    reg.Resp25 = "Correcta";
                }
                else
                {
                    reg.Resp25 = "Incorrecta";
                }
            }
            else if (rdbres2preg25.Checked == true)
            {
                if (rdbres2preg25.Text.TrimEnd() == resppreg25)
                {
                    reg.Resp25 = "Correcta";
                }
                else
                {
                    reg.Resp25 = "Incorrecta";
                }
            }
            else if (rdbres3preg25.Checked == true)
            {
                if (rdbres3preg25.Text.TrimEnd() == resppreg25)
                {
                    reg.Resp25 = "Correcta";
                }
                else
                {
                    reg.Resp25 = "Incorrecta";
                }
            }
            else if (rdbres4preg25.Checked == true)
            {
                if (rdbres4preg25.Text.TrimEnd() == resppreg25)
                {
                    reg.Resp25 = "Correcta";
                }
                else
                {
                    reg.Resp25 = "Incorrecta";
                }
            }
        }
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg56.Checked == true)
            {
                resppreg56 = true;
                SQL_registro.resp56 = "Correcta";
            }
            else
            {
                resppreg56 = false;
                SQL_registro.resp56 = "Incorrecta";
            }

            if (rdbres2preg57.Checked == true)
            {
                resppreg57 = true;
                SQL_registro.resp57 = "Correcta";
            }
            else
            {
                resppreg57 = false;
                SQL_registro.resp57 = "Incorrecta";
            }

            if (rdbres1preg58.Checked == true)
            {
                resppreg58 = true;
                SQL_registro.resp58 = "Correcta";
            }
            else
            {
                resppreg58 = false;
                SQL_registro.resp58 = "Incorrecta";
            }

            if (rdbres1preg59.Checked == true)
            {
                resppreg59 = true;
                SQL_registro.resp59 = "Correcta";
            }
            else
            {
                resppreg59 = false;
                SQL_registro.resp59 = "Incorrecta";
            }

            if (rdbres3preg60.Checked == true)
            {
                resppreg60 = true;
                SQL_registro.resp60 = "Correcta";
            }
            else
            {
                resppreg60 = false;
                SQL_registro.resp60 = "Incorrecta";
            }
        }
コード例 #28
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg36.Checked == true)
            {
                if (rdbres1preg36.Text.TrimEnd() == resppreg36)
                {
                    reg.Resp36 = "Correcta";
                }
                else
                {
                    reg.Resp36 = "Incorrecta";
                }
            }
            else if (rdbres2preg36.Checked == true)
            {
                if (rdbres2preg36.Text.TrimEnd() == resppreg36)
                {
                    reg.Resp36 = "Correcta";
                }
                else
                {
                    reg.Resp36 = "Incorrecta";
                }
            }
            else if (rdbres3preg36.Checked == true)
            {
                if (rdbres3preg36.Text.TrimEnd() == resppreg36)
                {
                    reg.Resp36 = "Correcta";
                }
                else
                {
                    reg.Resp36 = "Incorrecta";
                }
            }
            else if (rdbres4preg36.Checked == true)
            {
                if (rdbres4preg36.Text.TrimEnd() == resppreg36)
                {
                    reg.Resp36 = "Correcta";
                }
                else
                {
                    reg.Resp36 = "Incorrecta";
                }
            }

            if (rdbres1preg37.Checked == true)
            {
                if (rdbres1preg37.Text.TrimEnd() == resppreg37)
                {
                    reg.Resp37 = "Correcta";
                }
                else
                {
                    reg.Resp37 = "Incorrecta";
                }
            }
            else if (rdbres2preg37.Checked == true)
            {
                if (rdbres2preg37.Text.TrimEnd() == resppreg37)
                {
                    reg.Resp37 = "Correcta";
                }
                else
                {
                    reg.Resp37 = "Incorrecta";
                }
            }
            else if (rdbres3preg37.Checked == true)
            {
                if (rdbres3preg37.Text.TrimEnd() == resppreg37)
                {
                    reg.Resp37 = "Correcta";
                }
                else
                {
                    reg.Resp37 = "Incorrecta";
                }
            }
            else if (rdbres4preg37.Checked == true)
            {
                if (rdbres4preg37.Text.TrimEnd() == resppreg37)
                {
                    reg.Resp37 = "Correcta";
                }
                else
                {
                    reg.Resp37 = "Incorrecta";
                }
            }

            if (rdbres1preg38.Checked == true)
            {
                if (rdbres1preg38.Text.TrimEnd() == resppreg38)
                {
                    reg.Resp38 = "Correcta";
                }
                else
                {
                    reg.Resp38 = "Incorrecta";
                }
            }
            else if (rdbres2preg38.Checked == true)
            {
                if (rdbres2preg38.Text.TrimEnd() == resppreg38)
                {
                    reg.Resp38 = "Correcta";
                }
                else
                {
                    reg.Resp38 = "Incorrecta";
                }
            }
            else if (rdbres3preg38.Checked == true)
            {
                if (rdbres3preg38.Text.TrimEnd() == resppreg38)
                {
                    reg.Resp38 = "Correcta";
                }
                else
                {
                    reg.Resp38 = "Incorrecta";
                }
            }
            else if (rdbres4preg38.Checked == true)
            {
                if (rdbres4preg38.Text.TrimEnd() == resppreg38)
                {
                    reg.Resp38 = "Correcta";
                }
                else
                {
                    reg.Resp38 = "Incorrecta";
                }
            }

            if (rdbres1preg39.Checked == true)
            {
                if (rdbres1preg39.Text.TrimEnd() == resppreg39)
                {
                    reg.Resp39 = "Correcta";
                }
                else
                {
                    reg.Resp39 = "Incorrecta";
                }
            }
            else if (rdbres2preg39.Checked == true)
            {
                if (rdbres2preg39.Text.TrimEnd() == resppreg39)
                {
                    reg.Resp39 = "Correcta";
                }
                else
                {
                    reg.Resp39 = "Incorrecta";
                }
            }
            else if (rdbres3preg39.Checked == true)
            {
                if (rdbres3preg39.Text.TrimEnd() == resppreg39)
                {
                    reg.Resp39 = "Correcta";
                }
                else
                {
                    reg.Resp39 = "Incorrecta";
                }
            }
            else if (rdbres4preg39.Checked == true)
            {
                if (rdbres4preg39.Text.TrimEnd() == resppreg39)
                {
                    reg.Resp9 = "Correcta";
                }
                else
                {
                    reg.Resp39 = "Incorrecta";
                }
            }

            if (rdbres1preg40.Checked == true)
            {
                if (rdbres1preg40.Text.TrimEnd() == resppreg40)
                {
                    reg.Resp40 = "Correcta";
                }
                else
                {
                    reg.Resp40 = "Incorrecta";
                }
            }
            else if (rdbres2preg40.Checked == true)
            {
                if (rdbres2preg40.Text.TrimEnd() == resppreg40)
                {
                    reg.Resp40 = "Correcta";
                }
                else
                {
                    reg.Resp40 = "Incorrecta";
                }
            }
            else if (rdbres3preg40.Checked == true)
            {
                if (rdbres3preg40.Text.TrimEnd() == resppreg40)
                {
                    reg.Resp40 = "Correcta";
                }
                else
                {
                    reg.Resp40 = "Incorrecta";
                }
            }
            else if (rdbres4preg40.Checked == true)
            {
                if (rdbres4preg40.Text.TrimEnd() == resppreg40)
                {
                    reg.Resp40 = "Correcta";
                }
                else
                {
                    reg.Resp40 = "Incorrecta";
                }
            }
        }
        private void Guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres3preg1.Checked == true)
            {
                resppreg1 = true;
                SQL_registro.resp1 = "Correcta";
            }
            else
            {
                resppreg1 = false;
                SQL_registro.resp1 = "Incorrecta";
            }

            if (rdbres1preg2.Checked == true)
            {
                resppreg2 = true;
                SQL_registro.resp2 = "Correcta";
            }
            else
            {
                resppreg2 = false;
                SQL_registro.resp2 = "Incorrecta";
            }

            if (rdbres1preg3.Checked == true)
            {
                resppreg3 = true;
                SQL_registro.resp3 = "Correcta";
            }
            else
            {
                resppreg3 = false;
                SQL_registro.resp3 = "Incorrecta";
            }

            if (rdbres4preg4.Checked == true)
            {
                resppreg4 = true;
                SQL_registro.resp4 = "Correcta";
            }
            else
            {
                resppreg4 = false;
                SQL_registro.resp4 = "Incorrecta";
            }

            if (rdbres1preg5.Checked == true)
            {
                resppreg5 = true;
                SQL_registro.resp5 = "Correcta";
            }
            else
            {
                resppreg5 = false;
                SQL_registro.resp5 = "Incorrecta";
            }
        }
コード例 #30
0
        private void guardado()
        {
            SQL_registro reg = new SQL_registro();

            if (rdbres1preg31.Checked == true)
            {
                if (rdbres1preg31.Text.TrimEnd() == resppreg31)
                {
                    reg.Resp31 = "Correcta";
                }
                else
                {
                    reg.Resp31 = "Incorrecta";
                }
            }
            else if (rdbres2preg31.Checked == true)
            {
                if (rdbres2preg31.Text.TrimEnd() == resppreg31)
                {
                    reg.Resp31 = "Correcta";
                }
                else
                {
                    reg.Resp31 = "Incorrecta";
                }
            }
            else if (rdbres3preg31.Checked == true)
            {
                if (rdbres3preg31.Text.TrimEnd() == resppreg31)
                {
                    reg.Resp31 = "Correcta";
                }
                else
                {
                    reg.Resp31 = "Incorrecta";
                }
            }
            else if (rdbres4preg31.Checked == true)
            {
                if (rdbres4preg31.Text.TrimEnd() == resppreg31)
                {
                    reg.Resp31 = "Correcta";
                }
                else
                {
                    reg.Resp31 = "Incorrecta";
                }
            }

            if (rdbres1preg32.Checked == true)
            {
                if (rdbres1preg32.Text.TrimEnd() == resppreg32)
                {
                    reg.Resp32 = "Correcta";
                }
                else
                {
                    reg.Resp32 = "Incorrecta";
                }
            }
            else if (rdbres2preg32.Checked == true)
            {
                if (rdbres2preg32.Text.TrimEnd() == resppreg32)
                {
                    reg.Resp32 = "Correcta";
                }
                else
                {
                    reg.Resp32 = "Incorrecta";
                }
            }
            else if (rdbres3preg32.Checked == true)
            {
                if (rdbres3preg32.Text.TrimEnd() == resppreg32)
                {
                    reg.Resp32 = "Correcta";
                }
                else
                {
                    reg.Resp32 = "Incorrecta";
                }
            }
            else if (rdbres4preg32.Checked == true)
            {
                if (rdbres4preg32.Text.TrimEnd() == resppreg32)
                {
                    reg.Resp32 = "Correcta";
                }
                else
                {
                    reg.Resp32 = "Incorrecta";
                }
            }

            if (rdbres1preg33.Checked == true)
            {
                if (rdbres1preg33.Text.TrimEnd() == resppreg33)
                {
                    reg.Resp33 = "Correcta";
                }
                else
                {
                    reg.Resp33 = "Incorrecta";
                }
            }
            else if (rdbres2preg33.Checked == true)
            {
                if (rdbres2preg33.Text.TrimEnd() == resppreg33)
                {
                    reg.Resp33 = "Correcta";
                }
                else
                {
                    reg.Resp33 = "Incorrecta";
                }
            }
            else if (rdbres3preg33.Checked == true)
            {
                if (rdbres3preg33.Text.TrimEnd() == resppreg33)
                {
                    reg.Resp33 = "Correcta";
                }
                else
                {
                    reg.Resp33 = "Incorrecta";
                }
            }
            else if (rdbres4preg33.Checked == true)
            {
                if (rdbres4preg33.Text.TrimEnd() == resppreg33)
                {
                    reg.Resp33 = "Correcta";
                }
                else
                {
                    reg.Resp33 = "Incorrecta";
                }
            }

            if (rdbres1preg34.Checked == true)
            {
                if (rdbres1preg34.Text.TrimEnd() == resppreg34)
                {
                    reg.Resp34 = "Correcta";
                }
                else
                {
                    reg.Resp34 = "Incorrecta";
                }
            }
            else if (rdbres2preg34.Checked == true)
            {
                if (rdbres2preg34.Text.TrimEnd() == resppreg34)
                {
                    reg.Resp34 = "Correcta";
                }
                else
                {
                    reg.Resp34 = "Incorrecta";
                }
            }
            else if (rdbres3preg34.Checked == true)
            {
                if (rdbres3preg34.Text.TrimEnd() == resppreg34)
                {
                    reg.Resp34 = "Correcta";
                }
                else
                {
                    reg.Resp34 = "Incorrecta";
                }
            }
            else if (rdbres4preg34.Checked == true)
            {
                if (rdbres4preg34.Text.TrimEnd() == resppreg34)
                {
                    reg.Resp34 = "Correcta";
                }
                else
                {
                    reg.Resp34 = "Incorrecta";
                }
            }

            if (rdbres1preg35.Checked == true)
            {
                if (rdbres1preg35.Text.TrimEnd() == resppreg35)
                {
                    reg.Resp35 = "Correcta";
                }
                else
                {
                    reg.Resp35 = "Incorrecta";
                }
            }
            else if (rdbres2preg35.Checked == true)
            {
                if (rdbres2preg35.Text.TrimEnd() == resppreg35)
                {
                    reg.Resp35 = "Correcta";
                }
                else
                {
                    reg.Resp35 = "Incorrecta";
                }
            }
            else if (rdbres3preg35.Checked == true)
            {
                if (rdbres3preg35.Text.TrimEnd() == resppreg35)
                {
                    reg.Resp35 = "Correcta";
                }
                else
                {
                    reg.Resp35 = "Incorrecta";
                }
            }
            else if (rdbres4preg35.Checked == true)
            {
                if (rdbres4preg35.Text.TrimEnd() == resppreg35)
                {
                    reg.Resp35 = "Correcta";
                }
                else
                {
                    reg.Resp35 = "Incorrecta";
                }
            }
        }