public BuscadorForm() { InitializeComponent(); MostrarLB.Enabled = false; InformacionLB.Hide(); InformacionLB.Enabled = false; listaMostrarBusqueda = new List <string>(); listaMostrarInformacion = new List <string>(); }
private void BusquedaTB_TextChanged(object sender, EventArgs e) { listaMostrarBusqueda.Clear(); MostrarLB.DataSource = new List <string>(); MostrarLB.Enabled = false; InformacionLB.Hide(); if (BusquedaTB.Text.Length < 3) { return; } BuscadorEventArgs buscadorEventArgs = new BuscadorEventArgs(); buscadorEventArgs.texto = BusquedaTB.Text.ToUpper(); OnBusqueda(this, buscadorEventArgs); MostrarLB.DataSource = listaMostrarBusqueda; MostrarLB.Refresh(); }
private void MostrarLB_Click(object sender, EventArgs e) { InformacionLB.Show(); }