Example #1
0
        private void timerTextChangeEvent_Tick(object sender, EventArgs e)
        {
            timerTextChangeEvent.Enabled = false;
            switch (inducedTextBox)
            {
            case EnumTextBoxFocus.SearchPatients:
                listBoxPatients.DataSource = LogicProvider.Logic.SearchPatientsByString(textBoxSearchPatient.Text) as List <PatientString>; break;

            case EnumTextBoxFocus.SearchPatients3:
                listBoxPatients3.DataSource = LogicProvider.Logic.SearchPatientsByString(textBoxSearchPatients3.Text) as List <PatientString>; break;

            case EnumTextBoxFocus.SearchSymptom:
                listBoxResultSymptom.DataSource = LogicProvider.Logic.SearchSymptomsByString(textBoxSearchSymptom.Text) as List <Symptom>; break;

            default: break;
            }

            inducedTextBox = EnumTextBoxFocus.None;
        }
Example #2
0
 private void RunSearch(EnumTextBoxFocus focus)
 {
     inducedTextBox = focus;
     timerTextChangeEvent.Enabled = false;
     timerTextChangeEvent.Enabled = true;
 }