public void Update(OverviewItemList items) { if (items != null) { this.items = items; context.RunOnUiThread(() => NotifyDataSetChanged()); } callback.UserUpdateRequested(); }
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(); }
public void UpdateTasks(OverviewItemList tasks) { this.items = tasks; adapter.Update(items); }