private void ZoekResultatenOrigineel() { if (txtSearch != null) { dbOriginalRepository dbrep = new dbOriginalRepository(); if (string.IsNullOrEmpty(txtSearch.Text)) { dgContacten.ItemsSource = dbrep.GetContacten(); } else { dgContacten.ItemsSource = dgVakmannen.ItemsSource = dbrep.GetContacten(txtSearch.Text.Split(' ')); } } }
private void ZoekResultaten() { if (txtSearch != null) { dbOriginalRepository dbrep = new dbOriginalRepository(); if (string.IsNullOrEmpty(txtSearch.Text)) { dgContacten.ItemsSource = dbrep.GetContacten().Where(c => !listViewVakmannen.Any(v => c.persoon_ID == v.ContactIdOrigineel)); } else { dgContacten.ItemsSource = dbrep.GetContacten(txtSearch.Text.Split(' ')).Where(c => !listViewVakmannen.Any(v => c.persoon_ID == v.ContactIdOrigineel)); } } }