Beispiel #1
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        private void Initialize()
        {
            // Init Clinic combobox
            var clinic = this._clinicRepo.GetAll();

            this.bdsClinic.DataSource    = clinic;
            this.cboClinic.SelectedValue = AppContext.CurrentClinic.Id;

            // Init AutoCompleteSource
            var medicinesName  = _medicineRepo.GetMedicinesName();
            var completeSource = new AutoCompleteStringCollection();

            completeSource.AddRange(medicinesName.ToArray());
            txtMedicine.AutoCompleteCustomSource = completeSource;
        }