protected async override void OnStart() { bitopiApplication.CurrentActivity = "Approval Detail Activity"; base.OnStart(); var progressDialog = ProgressDialog.Show(this, null, "", true); repo = new ApprovalRepository(); List <ApprovalDetailsModel> aprovalList = await repo.GetPOApprovalDetails(bitopiApplication.User.UserCode, bitopiApplication.ApprovalRoleType, bitopiApplication.ApprovalType); _approvalList.Clear(); aprovalList.ForEach(s => _approvalList.Add(s)); _approvalListAdapter = new ApprovalDetalisListAdapter(_approvalList, lvApprovalDetailList, this); lvApprovalDetailList.SetAdapter(_approvalListAdapter); _approvalListAdapter.NotifyDataSetChanged(); _chkApproveAll.Click += (s, e) => { _approvalList.ForEach(t => t.isApproved = _chkApproveAll.Checked); _approvalListAdapter.SetData(_approvalList); _approvalListAdapter.NotifyDataSetChanged(); }; lvApprovalDetailList.SetGroupIndicator(null); progressDialog.Dismiss(); }
public CustomSearchViewOnCloseListenter(RelativeLayout rltitle, ApprovalDetalisListAdapter adapter, ApprovalDetailList list) { _rltitle = rltitle; _approvalListAdapter = adapter; _list = list; }