//Method to displayAllPractitioner public void DisplayAllPractitioner() { var allPractitioner = PractitionerDB.GetAllPractitioners(); foreach (var item in allPractitioner) { Practitioners.Add(item); } }
//Method to call the searchpatient instance from the PatientDB. //This method will be attached to the button 'Search' command. private void SearchPractitioner() { Practitioners.Clear(); var search = PractitionerDB.SearchPractitioner(SearchInput); foreach (var item in search) { Practitioners.Add(item); } }
private void AddPractitioner() { Practitioner practitioner = new Practitioner(); //adding additional row after the last row int lastRow = Practitioners.Count; for (int i = 0; i <= lastRow; i++) { if (i == lastRow) { Practitioners.Add(practitioner); } } }