Beispiel #1
0
        void assignPhoneNoToTextField()
        {
            List <string> PatientPhones            = ma.getPatientPhones();
            AutoCompleteStringCollection colValues = new AutoCompleteStringCollection();

            metroTextBoxPhone.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            metroTextBoxPhone.AutoCompleteSource = AutoCompleteSource.CustomSource;
            colValues.AddRange(PatientPhones.ToArray());
            metroTextBoxPhone.AutoCompleteCustomSource = colValues;
        }
        void PatientPhoneTextBox()
        {
            List <string> PatientPhones = m.getPatientPhones();
            //metroTextBoxPatientId
            AutoCompleteStringCollection colValues = new AutoCompleteStringCollection();

            metroTextBoxPatientId.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
            metroTextBoxPatientId.AutoCompleteSource = AutoCompleteSource.CustomSource;
            colValues.AddRange(PatientPhones.ToArray());
            metroTextBoxPatientId.AutoCompleteCustomSource = colValues;
        }