private void GetUnitsForEachQuantity() { foreach (var qt in QuantityTypes) { UnitsList.Add(getUnitsForType(qt)); } }
private async void LoadUnitsList() { if (!IsBusy) { IsBusy = true; UnitsList.Clear(); var unitsList = await DataRepository.Instance.GetUnitsAsync(); foreach (var unit in unitsList) { UnitsList.Add(new UnitModel(unit)); } Title = Resource.Units; IsBusy = false; } }