public void DisplayList1() { List <Doctor> doctors = doctorManager.DisplayDoctorList(); foreach (var item in doctors) { Doctors.Add(item); } if (doctors.Count < 1) { MessageBox.Show("No Doctor record exists !"); } }
public void DisplayList1() { List <Doctor> doctors = doctorManager.DisplayDoctorList(); foreach (var item in doctors) { Doctors.Add(item); } if (doctors.Count < 1) { MessageBox.Show("No Doctor record exists !"); } }