Hide all sub-tabs when page first loads. Makes things look cleaner

This commit is contained in:
Tim Young 2017-08-02 10:16:10 -05:00
parent 508ac987f7
commit 1675a000a1
1 changed files with 7 additions and 0 deletions

View File

@ -77,6 +77,7 @@ namespace EduNetworkBuilder
{ {
Icon = Properties.Resources.NBIco; Icon = Properties.Resources.NBIco;
LanguagifyComponents(); LanguagifyComponents();
HideAllTabs();
myTooltip.AutoPopDelay = 5000; myTooltip.AutoPopDelay = 5000;
myTooltip.InitialDelay = 1000; myTooltip.InitialDelay = 1000;
@ -311,6 +312,12 @@ namespace EduNetworkBuilder
tcTreeData.SelectedIndex = 0; tcTreeData.SelectedIndex = 0;
} }
private void HideAllTabs()
{
foreach (TreeDataTab one in Enum.GetValues(typeof(TreeDataTab)))
HideTabPage(one);
}
private void HideTabPage(TreeDataTab What) private void HideTabPage(TreeDataTab What)
{ {
TabPage Tab = null; TabPage Tab = null;