private async void OnDialogLoaded(object sender, RoutedEventArgs e)
        {
            ImsDataService imsSvc    = new ImsDataService(App.ApiSettings);
            var            inventory = await imsSvc.GetMedicineInventoryListAsync();

            SuggestedMedicines = new ObservableCollection <MedicineInventory>(inventory);
        }
示例#2
0
        private async void GetMedicinesAsync()
        {
            List <MedicineInventory> medicines = await imsSvc.GetMedicineInventoryListAsync();

            MedicineInventories = new ObservableCollection <MedicineInventory>(medicines.OrderBy(inv => inv.GenericName));
        }