Esempio n. 1
0
        async void LoadList(string PRStatus, Action task = null)
        {
            // var progressDialog = ProgressDialog.Show(this, null, "Please Wait.", true);
            //new Thread(new ThreadStart(() =>
            //{
            list = await repo.GetProductionList(bitopiApplication.User.UserCode, DBAccess.Database.RecentHistory.Result.ProcessID,
                                                DBAccess.Database.RecentHistory.Result.LocationID, PRStatus, 2);

            RunOnUiThread(() =>
            {
                atvReference.Adapter = new ArrayAdapter(this, Android.Resource.Layout.SimpleDropDownItem1Line, list.Select(t => t.RefNo).ToArray());
                adapter.Items        = list;
                adapter.NotifyDataSetChanged();
                //progressDialog.Dismiss();
                //AndHUD.Shared.Dismiss();
                if (task != null)
                {
                    if (list.Count > 0)
                    {
                        task();
                    }
                    else
                    {
                        Toast.MakeText(this, "No Data Found", ToastLength.Long).Show();
                    }
                }
                Log.Debug("", list.Count().ToString());
            });
            // })).Start();
        }
Esempio n. 2
0
 protected override void PublishResults(Java.Lang.ICharSequence constraint, Filter.FilterResults results)
 {
     customAdapter.NotifyDataSetChanged();
 }