예제 #1
0
        async void OnRefresh(object sender, EventArgs e)
        {
            this.IsBusy = true;
            var bookCollection = await manager.GetAll();

            try
            {
                foreach (Clubs club in bookCollection)
                {
                    if (clubsMatches.All(b => b.Name != club.Name))
                    {
                        clubsMatches.Add(club);
                    }
                }
            }
            finally
            {
                this.IsBusy = false;
            }
        }
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            this.IsBusy = true;
            var clubCollection = await manager.GetAll();

            try
            {
                foreach (Clubs club in clubCollection)
                {
                    if (clubs.All(b => b.Name != club.Name))
                    {
                        clubs.Add(club);
                    }
                }
            }
            finally
            {
                this.IsBusy = false;
            }
        }