Exemplo n.º 1
0
        private void tsmStockAdjustment_Click(object sender, EventArgs e)
        {
            try
            {
                foreach (TabPage _tab in this.tbcNSites_V.TabPages)
                {
                    if (_tab.Text == "Stock Adjustment")
                    {
                        tbcNSites_V.SelectedTab = _tab;
                        return;
                    }
                }

                StockAdjustmentUI _StockAdjustment = new StockAdjustmentUI();
                TabPage           _ListFormTab     = new TabPage();
                _ListFormTab.ImageIndex     = 33;
                _StockAdjustment.ParentList = this;
                displayControlOnTab(_StockAdjustment, _ListFormTab);
            }
            catch (Exception ex)
            {
                ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "tsmStockAdjustment_Click");
                em.ShowDialog();
                return;
            }
        }
Exemplo n.º 2
0
        private void tsmStockAdjustment_Click(object sender, EventArgs e)
        {
            StockAdjustmentUI _StockAdjustment    = new StockAdjustmentUI();
            TabPage           _StockAdjustmentTab = new TabPage();

            _StockAdjustmentTab.ImageIndex = 25;
            _StockAdjustment.ParentList    = this;
            displayControlOnTab(_StockAdjustment, _StockAdjustmentTab);
        }