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; }
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); }
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); } }
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(); }
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); } } } }
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; } }
/// <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 "; } }