예제 #1
0
 public ListActionHelper(BookingsListAdapter listAdapter, ListView listView, Context ctx, bool isWorkshop)
 {
     this.listAdapter = listAdapter;
     this.listView = listView;
     this.ctx = ctx;
     this.isWorkshop = isWorkshop;
     InitOptions();
 }
예제 #2
0
        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;
        }
예제 #3
0
 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;
 }
예제 #4
0
        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;
            };
        }