Exemple #1
0
        public async void GetCombo()
        {
            // lay du lieu tu db
            myAPI = RestService.For <IMyAPI>("https://goldenspa.azurewebsites.net");
            var result = await myAPI.GetListCombo();

            mAdapterCombo = new Home_Combo_Customer_Adapter(result);
            mRecyclerViewCombo.SetAdapter(mAdapterCombo);

            mAdapterCombo.ItemClick += (s, e) =>
            {
                var intent = new Intent(Activity, typeof(Customer.activity_Service_Customer));
                intent.PutExtra("ComboId", result[e].MaDV);
                intent.PutExtra("ComboName", result[e].NameService);
                intent.PutExtra("PromotionName", result[e].price.ToString());
                intent.PutExtra("Index", e.ToString());
                StartActivity(intent);
            };
        }