コード例 #1
0
 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(' '));
         }
     }
 }
コード例 #2
0
 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));
         }
     }
 }