public async override void RefreshGrid() { SampleRepository repo = new SampleRepository(); _list = await repo.GetProcessFollowUpList(stringData, "Not Received"); adapter.Items = _list; adapter.NotifyDataSetChanged(); }
public async override void OnStart() { base.OnStart(); SampleRepository repo = new SampleRepository(); _list = await repo.GetProcessFollowUpList(stringData, "Not Delivered"); adapter.ProcessID = 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.GetProcessFollowUpList(stringData, "Not Delivered"); adapter.ProcessID = stringData; adapter.Items = _list; adapter.NotifyDataSetChanged(); progressDialog.Dismiss(); if (_list.Count == 0) { tvMsg.Visibility = ViewStates.Visible; } else { tvMsg.Visibility = ViewStates.Gone; } }