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

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;