예제 #1
0
        //Method to displayAllPractitioner
        public void DisplayAllPractitioner()
        {
            var allPractitioner = PractitionerDB.GetAllPractitioners();

            foreach (var item in allPractitioner)
            {
                Practitioners.Add(item);
            }
        }
예제 #2
0
        //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);
            }
        }
예제 #3
0
        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);
                }
            }
        }