private void Tip_SelectionChanged(object sender, SelectionChangedEventArgs e) { EnterpriseType et = (EnterpriseType)Tip.SelectedItem; var searched = Saradnici.Where(elem => elem.Type.Ime.Equals(et.Ime)); dgrMain.ItemsSource = searched; }
private void SearchZahtev_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { var searched = Saradnici.Where(elem => elem.Ime.ToLower().StartsWith(SearchZahtev.Text.ToLower())); dgrMain.ItemsSource = searched; }
private void SearchOrganizator_KeyUp(object sender, KeyEventArgs e) { var searched = Saradnici.Where(elem => elem.Ime.ToLower().StartsWith(SearchOrganizator.Text.ToLower()) || elem.Adresa.ToLower().StartsWith(SearchOrganizator.Text.ToLower())); dgrMain.ItemsSource = searched; }