Beispiel #1
0
        private List <PatientModel> LoadPatientData()
        {
            dt.Clear();
            List <PatientModel> patient = new List <PatientModel>();

            if (comboFilter.SelectedIndex == (int)SearchTypes.Name ||
                comboFilter.SelectedIndex == (int)SearchTypes.PhoneNumber)
            {
                patient = patientService.GetPatientByFilter((SearchTypes)comboFilter.SelectedIndex, txtFilter.Text);
            }
            else
            {
                patient = patientService.GetPatientByFilter((SearchTypes)comboFilter.SelectedIndex, dtFilterDate.Text);
            }
            return(patient);
        }