protected async override void OnStart()
        {
            base.OnStart();
            var SampleRepo = new SampleRepository();

            list = await SampleRepo.GetSampleRequisition();

            adapter          = new SampleProcessListAdapter(list, this);
            listView.Adapter = (adapter);
            adapter.NotifyDataSetChanged();
        }
Exemplo n.º 2
0
        protected async override void OnStart()
        {
            base.OnStart();
            var progressDialog = ProgressDialog.Show(this, null, "Please Wait.", true);

            InitializeEvent();
            var SampleRepo = new SampleRepository();

            list = await SampleRepo.GetSampleRequisition();

            adapter          = new SampleProcessListAdapter(list, this);
            listView.Adapter = (adapter);
            adapter.NotifyDataSetChanged();
            progressDialog.Dismiss();
            if (list.Count == 0)
            {
                tvMsg.Visibility = ViewStates.Visible;
            }
            else
            {
                tvMsg.Visibility = ViewStates.Gone;
            }
        }
Exemplo n.º 3
0
 protected override void PublishResults(Java.Lang.ICharSequence constraint, Filter.FilterResults results)
 {
     customAdapter.NotifyDataSetChanged();
 }