示例#1
0
        private async Task FetchEvents()
        {
            IsBusy = true;

            var events = await _eventsContext.GetUpcoming();

            Events.Clear();

            if (events.Count != 0)
            {
                Events.AddRange(events);
            }

            IsBusy = false;
        }