//public void LLenarComboEstado2()
        //{
        //    GestorEstado ge = new GestorEstado();
        //    cmbEstadoLab.DataSource = ge.Consultar().Tables[0];
        //    cmbEstadoLab.DisplayMember = "Nombre";
        //    cmbEstadoLab.ValueMember = "id_estado";
        //    cmbEstadoLab.SelectedIndex = 0;
        //}
        private void button5_Click(object sender, EventArgs e)
        {
            var gd = new GestorDeportista();
            string guardado;
            var documento = int.Parse(lblDocumento.Text);
            var id_estado = int.Parse(cmbEstado.SelectedValue.ToString());
            if (id_estado == 4 && fechaLista == false)
            {
                MessageBox.Show("Seleccione fecha de Estudios");
                gbFechas.Enabled = true;
                btnGuardar.Enabled = false;
            }
            else
            {
                gbFechas.Enabled = false;
                guardado = gd.Modificar(documento, id_estado);

                try
                {
                    //usa tabla nueva DeportistaXAptoMedicoXAnio

                    if (id_estado == 6 || id_estado == 7 || id_estado == 11) //6 apto, 7 no apto, 11, apto_solo_recreativos
                    {
                        int anio = DateTime.Now.Year;
                        gd.mantenerEstadoAptoMedico(documento, id_estado, anio);
                    }
                }
                catch (Exception ex) { }

                if (guardado == "Guardado")
                {
                    MessageBox.Show("Guardado Correctamente ");
                    txtEstado.Text = cmbEstado.Text;

                    return;
                }

                if (guardado == "Error")
                {
                    MessageBox.Show("No Guardado, error de escritura");
                }
            }
        }