Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
        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;
        }