public void ListarEspecilistas(int intOpcion, string idEspecialista) { bool bolExistenDatos = false; DataSet datDatos = new DataSet(); if (ExisteConexion()) { bolExistenDatos = objReporte.listarEspecialista(intOpcion, ref datDatos, idEspecialista); 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[1].ToString() }; lisDatos.Add(item); } ViewReporte.LlenarComboEspecialista = lisDatos; } // else // vieGraficas.Mensaje("No hay registros!!!", 3); } // else // vieGraficas.Mensaje("No hay conexión de Red con el Servidor.", 4); }