コード例 #1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            categoryPicker.ItemsSource = await CitylightGroup.GetGroupsAsync(Utils.Utils.COMMUNITY_ID);

            pointsListView.ItemsSource = await CitylightPoint.GetPointsAsync(Utils.Utils.COMMUNITY_ID);
        }
コード例 #2
0
 protected async void categoryPicker_ItemSelected(object sender, EventArgs args)
 {
     try
     {
         var selectedItem = categoryPicker.SelectedItem as CitylightGroup;
         pointsListView.ItemsSource = await CitylightPoint.GetPointsAsync(int.Parse(selectedItem.properties.group_id));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
コード例 #3
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();
            if (categories == null)
            {
                ActivityIndicator.IsRunning = true;
                categories = await CitylightGroup.GetGroupsAsync(Utils.Utils.DINING_ID);

                pointsListView.ItemsSource = await CitylightPoint.GetPointsAsync(Utils.Utils.DINING_ID);

                categoryPicker.ItemsSource  = categories;
                ActivityIndicator.IsRunning = false;
            }
        }