Example #1
0
        private void Monitor_Load(object sender, EventArgs e)
        {
            //Se maximiza el formulario
            WindowState = FormWindowState.Maximized;
            this.UbicarGrillas();

            //Se obtiene la lista de tipos de cargue
            EnturnadorLIB.Enturnador.Lista objLista = new EnturnadorLIB.Enturnador.Lista();
            this.listaTipoCargue = objLista.GetListaTipoCargue();

            //Se inicia en 0 el indice del tipo de lista
            this.indiceLista = 0;

            //Se obtienen valores de configuracion inicial
            EnturnadorLIB.Enturnador.Configuracion objConfig = new EnturnadorLIB.Enturnador.Configuracion();
            this.cantidadLista = Convert.ToInt32(objConfig.GetValorConfig(CGlobal.CANTIDAD_LISTA));
            int tiempoLista = Convert.ToInt32(objConfig.GetValorConfig(CGlobal.TIEMPO_LISTA));

            this.paginaActual = 1;


            this.objCola = new EnturnadorLIB.Enturnador.Cola();
            this.ProcesarTickLista();
            this.timerLista.Interval = tiempoLista * 1000;
            this.timerLista.Enabled  = true;
            //this.ProcesarTickLista();


            //Se cargan las noticias
            this.objNoticia = new EnturnadorLIB.Enturnador.Noticia();
            this.GetNoticias();
            this.timer1.Enabled = true;
        }
Example #2
0
        private void Monitor_Load(object sender, EventArgs e)
        {   
            //Se maximiza el formulario         
            WindowState = FormWindowState.Maximized;
            this.UbicarGrillas();
            
            //Se obtiene la lista de tipos de cargue
            EnturnadorLIB.Enturnador.Lista objLista = new EnturnadorLIB.Enturnador.Lista();
            this.listaTipoCargue = objLista.GetListaTipoCargue();

            //Se inicia en 0 el indice del tipo de lista
            this.indiceLista = 0;

            //Se obtienen valores de configuracion inicial
            EnturnadorLIB.Enturnador.Configuracion objConfig = new EnturnadorLIB.Enturnador.Configuracion();
            this.cantidadLista = Convert.ToInt32(objConfig.GetValorConfig(CGlobal.CANTIDAD_LISTA));
            int tiempoLista = Convert.ToInt32(objConfig.GetValorConfig(CGlobal.TIEMPO_LISTA));
            this.paginaActual = 1;


            this.objCola = new EnturnadorLIB.Enturnador.Cola();
            this.ProcesarTickLista();
            this.timerLista.Interval = tiempoLista * 1000;
            this.timerLista.Enabled = true;                           
            //this.ProcesarTickLista();

            
            //Se cargan las noticias
            this.objNoticia = new EnturnadorLIB.Enturnador.Noticia();
            this.GetNoticias();
            this.timer1.Enabled = true;

        }
Example #3
0
 private void Noticias_Load(object sender, EventArgs e)
 {
     this.objNoticia = new EnturnadorLIB.Enturnador.Noticia();
     this.GetNoticias();
 }
Example #4
0
 private void Noticias_Load(object sender, EventArgs e)
 {
     this.objNoticia = new EnturnadorLIB.Enturnador.Noticia();
     this.GetNoticias();
 }