Пример #1
0
 private void GetDoctorListWithPatients()
 {
     DoctorManager doctorManager=new DoctorManager();
     List<DoctorDepartment> doctorDepartmentList = doctorManager.GetDoctorListWithDepartments();
     foreach (var index in doctorDepartmentList)
     {
         ListViewItem listViewItem=new ListViewItem(index.DoctorName);
         listViewItem.SubItems.Add(index.DepartmentName);
         listViewItem.Tag = index.Id;
         doctorsListView.Items.Add(listViewItem);
     }
 }