Пример #1
0
 public void getDoc(string str)
 {
     HospitalModelDataContext data = new HospitalModelDataContext();
     IEnumerable<Obstegenya> obstegenya;
     obstegenya = data.Obstegenyas.Select(s => s);
     dataGrid.ItemsSource = obstegenya;
 }
Пример #2
0
 public void getDoc(string str)
 {
     HospitalModelDataContext data = new HospitalModelDataContext();
     IEnumerable<Doctor> doctors;
     if (str == "")
     {
         doctors = data.Doctors.Select(s => s);
     }
     else
     {
         doctors = data.Doctors.Where(s => s.lastname.Contains(str));
     }
     dataGrid.ItemsSource = doctors;
 }