public StructureCatAdapter(BuyStructureDialog context) : base() { this.fragment = context; foreach (string curKey in SectorPopFragment.catalog.Keys) { keys.Add(curKey); } this.fragment.curCategory = keys[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"); }
public StructureItemAdapter(BuyStructureDialog context) : base() { this.fragment = context; }