示例#1
0
文件: VM.cs 项目: Eladzy/FoodAPI
        private async void SetCollection()
        {
            await AccessAPI.GetAllData();//remember await

            Collections = new ObservableCollection <FoodPoco>();
            foreach (var item in AccessFoodAPI.DataList)
            {
                Collections.Add(item);
            }
        }