Esempio n. 1
0
        public async override void OnStart()
        {
            base.OnStart();
            SampleRepository repo = new SampleRepository();

            _list = await repo.GetProcessFollowUp_Upcoming(Convert.ToInt16(stringData));

            adapter.Items = _list;
            adapter.NotifyDataSetChanged();
        }
Esempio n. 2
0
        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;
            }
        }