Ejemplo n.º 1
0
 void DoSearchCommand(string searchText)
 {
     if (string.IsNullOrEmpty(searchText))
     {
         SearchMembreList.Clear();
         SearchMembreList.AddRange(MembreList);
     }
     else
     {
         SearchMembreList.Clear();
         SearchMembreList.AddRange(MembreList.Where(x => x.Nom.Contains(searchText)));
     }
 }
Ejemplo n.º 2
0
 private void MembreList_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     SearchMembreList.Clear();
     SearchMembreList.AddRange(MembreList);
 }