public ReportUI(PurchaseUI frmPurchase) { InitializeComponent(); ds = new BizCareDataSet(); rpt = new ReportDocument(); reportRepository = new ReportRepository(); this.frmPurchase = frmPurchase; }
// TODO: Remove this, fix UITemplatesPatch private static GameObject CreatePurchaseUI(Sprite titleIcon, string titleKey, PurchaseUI.Purchasable[] purchasables, bool hideNubuckCost, PurchaseUI.OnClose onClose, bool unavailInMainList = false) { GameObject gameObject = Instantiate(GameContext.Instance.UITemplates.purchaseUIPrefab); PurchaseUI component = gameObject.GetComponent <PurchaseUI>(); component.Init(titleIcon, titleKey, onClose); foreach (PurchaseUI.Purchasable purchasable in purchasables) { component.AddButton(purchasable, unavailInMainList); } if (hideNubuckCost) { component.HideNubuckCost(); } component.SelectFirst(); return(gameObject); }
// public method public void LinkComponentElement() { // high structure manager = GameObject.FindWithTag("GameLogic").GetComponent <GameManager>(); storeManager = GameObject.FindWithTag("GameLogic").GetComponent <StoreManager>(); // field listSlots = new DataElement[10]; for (int i = 0; i < 10; i++) { listSlots[i] = transform.Find("SellSlot" + (i + 1)).GetComponent <DataElement>(); } // low structure purchaseUI = transform.Find("PurchaseUI").gameObject; purchaseUILogic = purchaseUI.GetComponent <PurchaseUI>(); purchaseUI.SetActive(false); }
private void purchage1ToolStripMenuItem_Click(object sender, EventArgs e) { PurchaseUI aUi = new PurchaseUI(); aUi.Show(); }