private void tsmStockWithdrawal_Click(object sender, EventArgs e) { try { foreach (TabPage _tab in this.tbcNSites_V.TabPages) { if (_tab.Text == "Stock Withdrawal") { tbcNSites_V.SelectedTab = _tab; return; } } StockWithdrawalUI _StockWithdrawal = new StockWithdrawalUI(); TabPage _ListFormTab = new TabPage(); _ListFormTab.ImageIndex = 29; _StockWithdrawal.ParentList = this; displayControlOnTab(_StockWithdrawal, _ListFormTab); } catch (Exception ex) { ErrorMessageUI em = new ErrorMessageUI(ex.Message, this.Name, "tsmStockWithdrawal_Click"); em.ShowDialog(); return; } }
private void tsmStockWithdrawal_Click(object sender, EventArgs e) { StockWithdrawalUI _StockWithdrawal = new StockWithdrawalUI(); TabPage _StockWithdrawalTab = new TabPage(); _StockWithdrawalTab.ImageIndex = 21; _StockWithdrawal.ParentList = this; displayControlOnTab(_StockWithdrawal, _StockWithdrawalTab); }