Esempio n. 1
0
        public void PopulateInventoryItemInfo()
        {
            this.Text = "INVENTORY ITEM INFO";
            tabINFO.Pages.Clear();
            //ADD INVENTORY ITEM GENERAl INFO TAB
            ctrlInventoryItemAdditionalInfo ItemAdditionalInfoControl = null;

            ItemAdditionalInfoControl = new ctrlInventoryItemAdditionalInfo();
            KryptonPage pageGeneralInfo = new KryptonPage()
            {
                Text = "General Info", Name = "tabPageGeneralItemInfo"
            };

            tabINFO.Pages.Add(pageGeneralInfo);
            pageGeneralInfo.Controls.Add(ItemAdditionalInfoControl);
            ItemAdditionalInfoControl.Dock           = DockStyle.Fill;
            ItemAdditionalInfoControl.SelectedItemID = this.ENTITY_ID;
            ItemAdditionalInfoControl.PopulateAdditionalInfo();
            ItemAdditionalInfoControl.ReadOnly = true;

            KryptonPage pagePurchaseInfo = new KryptonPage()
            {
                Text = "Purchase History", Name = "tabPagePurchaseHistoryInfo"
            };

            tabINFO.Pages.Add(pagePurchaseInfo);
            KryptonPage pageSalesInfo = new KryptonPage()
            {
                Text = "Sales History", Name = "tabPageSalesHistoryInfo"
            };

            tabINFO.Pages.Add(pageSalesInfo);

            pageGeneralInfo.Select();
        }