public ListActionHelper(BookingsListAdapter listAdapter, ListView listView, Context ctx, bool isWorkshop) { this.listAdapter = listAdapter; this.listView = listView; this.ctx = ctx; this.isWorkshop = isWorkshop; InitOptions(); }
private void InitLists() { workshopSetListAdapter = new WorkshopCategoryListAdapter(this.LayoutInflater, Resources); workshopSetListView = FindViewById<ListView>(Resource.Id.workshopSetList); workshopSetListView.Adapter = workshopSetListAdapter; workshopListAdapter = new BookingsListAdapter(this.LayoutInflater, Resources, false); workshopListView = FindViewById<ListView>(Resource.Id.workshopList); workshopListView.Adapter = workshopListAdapter; }
public ActionClickListener(BookingsListAdapter listAdapter, ListView listView, List<WorkshopPreview> list, ListActionHelper actionHelper, bool sorting, bool isWorkshop, Android.Views.View dialogView = null) : base() { this.listAdapter = listAdapter; this.listView = listView; this.list = list; this.actionHelper = actionHelper; this.sorting = sorting; this.isWorkshop = isWorkshop; this.dialogView = dialogView; }
private void InitElements(Android.Views.View view, Android.Views.LayoutInflater inflater) { listAdapter = new BookingsListAdapter(inflater, Resources, true); listView = view.FindViewById<ListView>(GetListView()); listView.Adapter = listAdapter; refresher = view.FindViewById<SwipeRefreshLayout>(Resource.Id.swipeRefresh); refresher.Refresh += async (sender, e) => { await Task.Factory.StartNew(() => LoadData(view, false, true)); NotifyListUpdate(); refresher.Refreshing = false; }; }