コード例 #1
0
 public void Update(OverviewItemList items)
 {
     if (items != null)
     {
         this.items = items;
         context.RunOnUiThread(() => NotifyDataSetChanged());
     }
     callback.UserUpdateRequested();
 }
コード例 #2
0
 private void InitializeElements(View view)
 {
     if (items == null)
     {
         items = new OverviewItemList();
     }
     overviewList            = view.FindViewById <ListView>(Resource.Id.overviewList);
     adapter                 = new OverviewListAdapter(Activity, items, callback);
     overviewList.ItemClick += TaskClicked;
     overviewList.Adapter    = adapter;
     Update();
 }
コード例 #3
0
 public void UpdateTasks(OverviewItemList tasks)
 {
     this.items = tasks;
     adapter.Update(items);
 }