Example #1
0
 private void frmHistorial_Load(object sender, EventArgs e)
 {
     Archivos.Texto archivos = new Archivos.Texto(frmHistorial.ARCHIVO_HISTORIAL);
     this.listaHist = new List <string>();
     archivos.Leer(out listaHist);
     lstHistorial.DataSource = listaHist;
 }
Example #2
0
        public static string Leer()
        {
            string datos;

            Archivos.Texto texto = new Archivos.Texto();
            // -texto.Leer(Environment.SpecialFolder.Desktop.ToString() + "\\ejemplo.txt", out datos);
            texto.Leer("Jornada.txt", out datos);
            return(datos);
        }
Example #3
0
        private void frmHistorial_Load(object sender, EventArgs e)
        {
            Archivos.Texto archivos  = new Archivos.Texto(frmHistorial.ARCHIVO_HISTORIAL);
            List <string>  historial = new List <string>();

            archivos.Leer(out historial);
            foreach (string t in historial)
            {
                this.lstHistorial.Items.Add(t);
            }
        }
Example #4
0
        public void frmHistorial_Load(object sender, EventArgs e)
        {
            Archivos.Texto archivos  = new Archivos.Texto(frmHistorial.ARCHIVO_HISTORIAL);
            List <string>  historial = new List <string>();

            archivos.Leer(out historial);
            lstHistorial.BeginUpdate();
            foreach (string aux in historial)
            {
                lstHistorial.Items.Add(aux);
            }
            lstHistorial.EndUpdate();
        }
Example #5
0
 private void frmHistorial_Load(object sender, EventArgs e)
 {
     lstHistorial.Items.Clear();
     if (archivos.Leer(out _urls))
     {
         if (this._urls.Count > 0)
         {
             foreach (string url in this._urls)
             {
                 lstHistorial.Items.Add(url);
             }
         }
     }
 }
Example #6
0
 private void frmHistorial_Load(object sender, EventArgs e)
 {
     Archivos.Texto archivos = new Archivos.Texto(frmHistorial.ARCHIVO_HISTORIAL);
     try
     {
         archivos.Leer(out listaPaginas);
         foreach (string s in listaPaginas)
         {
             this.lstHistorial.Items.Add(s);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #7
0
        /// <summary>
        /// Cuando se abre el formulario se muestran las paginas webs
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmHistorial_Load(object sender, EventArgs e)
        {
            this.historialWebs = new List <string>();
            Archivos.Texto archivos = new Archivos.Texto(frmHistorial.ARCHIVO_HISTORIAL);

            if (archivos.Leer(out this.historialWebs) && !object.ReferenceEquals(this.historialWebs, null))
            {
                foreach (string url in this.historialWebs)
                {
                    if (url != null)
                    {
                        lstHistorial.Items.Add(url);
                    }
                }
            }
            else
            {
                lstHistorial.Text = "NO SE PUDO CARGAR LA LISTA DE PAGINAS WEBS ";
            }
        }