public async override void OnStart() { base.OnStart(); SampleRepository repo = new SampleRepository(); _list = await repo.GetProcessFollowUp_Upcoming(Convert.ToInt16(stringData)); adapter.Items = _list; adapter.NotifyDataSetChanged(); }
public async override void RefreshGrid() { SampleRepository repo = new SampleRepository(); var progressDialog = ProgressDialog.Show(this.Activity, null, "Please Wait.", true); _list = await repo.GetProcessFollowUp_Upcoming(Convert.ToInt16(stringData)); adapter.Items = _list; adapter.NotifyDataSetChanged(); progressDialog.Dismiss(); if (_list.Count == 0) { tvMsg.Visibility = ViewStates.Visible; } else { tvMsg.Visibility = ViewStates.Gone; } }