Пример #1
0
        public void RefreshParent()
        {
            ServiceWrapper svc = new ServiceWrapper();

            var             uidreviews = svc.GetItemReviewUID(uid).Result;
            ListView        wineList   = FindViewById <ListView>(Resource.Id.listView1);
            Review          edit       = new Review();
            ReviewPopup     editPopup  = new ReviewPopup(this, edit);
            MyReviewAdapter adapter    = new MyReviewAdapter(this, uidreviews.Reviews.ToList());

            //adapter.Edit_Click += editPopup.EditPopup;

            wineList.Adapter = adapter;
            adapter.NotifyDataSetChanged();
        }
Пример #2
0
        public void RefreshParent()
        {
            ServiceWrapper  svc        = new ServiceWrapper();
            var             uidreviews = svc.GetItemReviewUID(uid).Result;
            ListView        wineList   = FindViewById <ListView>(Resource.Id.listView1);
            Review          edit       = new Review();
            ReviewPopup     editPopup  = new ReviewPopup(this, edit);
            MyReviewAdapter adapter    = new MyReviewAdapter(this, uidreviews.Reviews.ToList());
            //adapter.Edit_Click += editPopup.EditPopup;
            int c = uidreviews.Reviews.Count;

            if (c == 0)
            {
                SetContentView(Resource.Layout.ReviewEmpty);
                txtName = FindViewById <TextView>(Resource.Id.textView1);
                Imag    = FindViewById <ImageView>(Resource.Id.imageView1);
            }
            wineList.Adapter = adapter;
            adapter.NotifyDataSetChanged();
        }