public void ListarAños(int intOpcion) { bool bolExistenDatos = false; DataSet datDatos = new DataSet(); if (ExisteConexion()) { bolExistenDatos = objReporte.listarAño(intOpcion, ref datDatos); if (bolExistenDatos == true) { List <CReporte> lisDatos = new List <CReporte>(); foreach (DataRow fila in datDatos.Tables[0].Rows) { CReporte item = new CReporte() { Id = fila[0].ToString(), Descripcion = fila[0].ToString() }; lisDatos.Add(item); } ViewReporte.LlenarComboAños = lisDatos; } // else // vieGraficas.Mensaje("No hay registros!!!", 3); } // else // vieGraficas.Mensaje("No hay conexión de Red con el Servidor.", 4); }