//---------------------------------------- #region Public Methods #endregion //---------------------------------------- #region Private Methods private void setTab(UserControl userControl, TabPageEX tabPage) { if (userControl is TabPageDataControlBase) { (userControl as TabPageDataControlBase).DataSelectionChanged += tabPage_SelectionChanged; } userControl.Dock = DockStyle.Fill; tabPage.Controls.Add(userControl); }
//--------------------------------------------- #region Private Methods private void setTab(UserControl userControl, TabPageEX tabPage) { userControl.Dock = DockStyle.Fill; tabPage.Controls.Add(userControl); }
private void setTab(UserControl userControl, TabPageEX tabPage) { if (userControl is TabPageDataControlBase) { (userControl as TabPageDataControlBase).DataSelectionChanged += tabPage_SelectionChanged; } userControl.Dock = DockStyle.Fill; tabPage.Controls.Add(userControl); }