예제 #1
0
        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++;
            }
        }
예제 #2
0
 public void insertTab(TabEntity tab)
 {
     Tabs.Add(tab);
 }
예제 #3
0
 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++;
     }
 }
예제 #4
0
 public void insertTab(TabEntity tab)
 {
     Tabs.Add(tab);
 }