private static void InitializeTab() { int tabIndex = 0; Array gridTypeEnumArray = Enum.GetValues(typeof(GridBoxType)); Tabs = new TabEntity[NumTabs]; foreach (GridBoxType type in gridTypeEnumArray) { if (type.ToString() == "None") { continue; } Tabs[tabIndex] = new TabEntity( new Rectangle(ToolBoxOffsetX + (tabIndex + 1) * TabPadding + TabWidth * tabIndex, TabPadding + ToolBoxPadding + ToolBorderLineWidth, TabWidth, TabHeight), false, false, type); tabIndex++; } }
public void insertTab(TabEntity tab) { Tabs.Add(tab); }
private static void InitializeTab() { int tabIndex = 0; Array gridTypeEnumArray = Enum.GetValues(typeof(GridBoxType)); Tabs = new TabEntity[NumTabs]; foreach (GridBoxType type in gridTypeEnumArray) { if (type.ToString() == "None") continue; Tabs[tabIndex] = new TabEntity( new Rectangle(ToolBoxOffsetX + (tabIndex + 1) * TabPadding + TabWidth * tabIndex, TabPadding + ToolBoxPadding + ToolBorderLineWidth, TabWidth, TabHeight), false, false, type); tabIndex++; } }