//Method to call the searchpatient instance from the PatientDB. //This method will be attached to the button 'Search' command. private void SearchPatient() { Patients.Clear(); var search = PatientDB.SearchPatient(SearchInput); foreach (var item in search) { Patients.Add(item); } }