コード例 #1
0
 private void GetUnitsForEachQuantity()
 {
     foreach (var qt in QuantityTypes)
     {
         UnitsList.Add(getUnitsForType(qt));
     }
 }
コード例 #2
0
        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;
            }
        }