示例#1
0
        public async Task Refresh()
        {
            if (!IsBusy)
            {
                IsBusy = true;
            }

            Businesses.Clear();
            var businesses = await BusinessStore.GetItemsAsync();

            Businesses.AddRange(businesses);

            CurrentLocation = await Geolocation.GetLocationAsync();

            IsBusy = false;
        }
示例#2
0
        private async Task Search()
        {
            var businesses = await BusinessStore.GetItemsAsync();

            Businesses.AddRange(businesses);
        }