示例#1
0
        private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        {
            var           transaction   = FragmentManager.BeginTransaction();
            OfferFragment offerFragment = new OfferFragment();

            offerFragment.promotion    = whishList[e.Position];
            offerFragment.OfferChange += this.OnOfferChange;
            offerFragment.Show(transaction, "create offer dialog");
        }
示例#2
0
        private void MAdapter_ItemClick(object sender, int e)
        {
            ItemsList itemsList = new ItemsList();

            itemsList.AddItems(offersList[e].items);
            FragmentTransaction transcation = FragmentManager.BeginTransaction();
            OfferFragment       offerItems  = new OfferFragment(itemsList, offersList[e]);

            offerItems.Show(transcation, "Dialog Fragment");
            if (!MainActivity.CartItems.isEmpty() || !MainActivity.CartOffers.isEmpty())
            {
                myCart.Visibility = ViewStates.Visible;
                myCart.Click     += MyCart_Click;;
            }
        }