Esempio n. 1
0
 public StructureCatAdapter(BuyStructureDialog context) : base()
 {
     this.fragment = context;
     foreach (string curKey in SectorPopFragment.catalog.Keys)
     {
         keys.Add(curKey);
     }
     this.fragment.curCategory = keys[0];
 }
Esempio n. 2
0
        public void ShowCatalog()
        {
            Android.Support.V4.App.FragmentTransaction ft = this.Activity.SupportFragmentManager.BeginTransaction();

            // Create and show the dialog.

            Android.Support.V4.App.Fragment prev = this.Activity.SupportFragmentManager.FindFragmentByTag("shopdialog");
            if (prev != null)
            {
                ft.Remove(prev);
            }
            ft.AddToBackStack(null);
            BuyStructureDialog newFragment = new BuyStructureDialog();

            newFragment.callback = (theObj) =>
            {
                HandlePurchase(theObj);
            };

            newFragment.Show(ft, "shopdialog");
        }
Esempio n. 3
0
 public StructureItemAdapter(BuyStructureDialog context) : base()
 {
     this.fragment = context;
 }