Example #1
0
        private async void LoadAllItem()
        {
            UnitTypes = new ObservableCollection <string>();
            UnitTypes.AddRange(ConstValues.UNIT_TYPES);
            IRestDataMapper mapper = containerExtension.Resolve <IRestDataMapper>();

            Uoms = await ItemRestService.GetAllUnitOfMeasurementAsync(mapper);

            LoadUnitNames();
        }
        private async void LoadAll()
        {
            IRestDataMapper mapper = containerExtension.Resolve <IRestDataMapper>();

            ItemGroups = await ItemRestService.GetAllItemGroupAsync(mapper);

            ItemSubGroups = await ItemRestService.GetAllItemSubGroupAsync(mapper);

            ObservableCollection <UnitOfMeasurement> ums = await ItemRestService.GetAllUnitOfMeasurementAsync(mapper);

            UomSugges = new UomSuggestionProvider()
            {
                uomSource = ums
            };
        }