Ejemplo n.º 1
0
        private void cargarNoticias()
        {
            GestorNoticia gestorNoticia = new GestorNoticia();

            sinNoticias.Visible = !GestorControles.cargarRepeaterList(rptUltimasNoticias, (gestorNoticia.obtenerNoticiasXCategoria(gestorEdicion.edicion.idEdicion, CategoriaNoticia.noticiaBOLETIN).Count > 2) ? gestorNoticia.obtenerNoticiasXCategoria(gestorEdicion.edicion.idEdicion, CategoriaNoticia.noticiaBOLETIN).AsEnumerable().Take(3).ToList() : gestorNoticia.obtenerNoticiasXCategoria(gestorEdicion.edicion.idEdicion, CategoriaNoticia.noticiaBOLETIN));
            sinEventos.Visible  = !GestorControles.cargarRepeaterList(rptEventos, gestorNoticia.obtenerNoticiasXCategoria(gestorEdicion.edicion.idEdicion, CategoriaNoticia.noticiaEVENTOS));
        }
Ejemplo n.º 2
0
        private void cargarNoticias()
        {
            List <Noticia> noticias = new GestorNoticia().obtenerListaDeNoticiasDeLaEdicion(edicion.idEdicion);

            if (noticias != null && noticias.Count > 0)
            {
                GestorControles.cargarRepeaterList(rptUltimasNoticias, noticias);
            }
            else
            {
                msjNoticias.Visible = true;
            }
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             torneo     = GestorUrl.validarTorneo();
             edicion    = GestorUrl.validarEdicion(torneo.nick);
             noticia    = GestorUrl.validarNoticia(torneo.nick, edicion.idEdicion);
             nickTorneo = torneo.nick;
             idEdicion  = edicion.idEdicion;
             GestorNoticia gestorNoticia = new GestorNoticia();
             GestorControles.cargarRepeaterList(rptUltimasNoticias, (gestorNoticia.obtenerNoticiasXCategoria(edicion.idEdicion, noticia.categoria.idCategoriaNoticia).Count > 2) ? gestorNoticia.obtenerNoticiasXCategoria(edicion.idEdicion, noticia.categoria.idCategoriaNoticia).AsEnumerable().Take(3).ToList() : gestorNoticia.obtenerNoticiasXCategoria(edicion.idEdicion, noticia.categoria.idCategoriaNoticia));
         }
     }
     catch (Exception ex) { GestorError.mostrarPanelFracaso(ex.Message); }
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                gestorEdicion = Sesion.getGestorEdicion();
                gestorNoticia = Sesion.getGestorNoticia();

                if (!Page.IsPostBack)
                {
                    cargarComboEdiciones();
                    cargarRepeaterNoticias();
                    cargarComboCategoriasNoticia();
                    imagenpreview.Src = GestorImagen.obtenerImagenDefault(GestorImagen.NOTICIA, GestorImagen.MEDIANA);
                }
            }
            catch (Exception ex) { mostrarPanelFracaso(ex.Message); }
        }