private void txtAra_TextChanged(object sender, EventArgs e) { var sonuc = MyTool.Arama <Doktor>(txtAra.Text, Listem); lstListe.Items.Clear(); sonuc.ForEach(x => lstListe.Items.Add(x)); }
private void txtAra_TextChanged(object sender, EventArgs e) { lstListe.DataSource = MyTool.Arama <Hasta>(txtAra.Text); }