示例#1
0
        /**
         * This method is executed when the page is loaded
         */
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            Func <GolfCourse, bool> f   = (c => true);
            List <GolfCourse>       res = await GestionGolfs.getListGolfsAsync(f);

            ListGolfCourse.ItemsSource = res;
        }
        protected override async void OnAppearing()
        {
            base.OnAppearing();
            List <GolfCourse> res = await GestionGolfs.getListGolfsAsync(null);

            //Update the list of golf courses
            gclvm          = new GolfCourseListViewModel(res);
            BindingContext = gclvm;
        }