亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tabgroupsequence.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
                                {
                                    // Create a resizing bar
                                    ResizeBar bar = new ResizeBar(_direction, this);

                                    _control.Controls.Add(bar);
                                    _control.Controls.SetChildIndex(bar, childPos++);
                                }
                            
                                // Add new child control in its place
                                _control.Controls.Add(tgb.GroupControl);
                                _control.Controls.SetChildIndex(tgb.GroupControl, childPos++);

                                // Insert at current position
                                _children.Insert(index, tgb);
                                
                                // Adjust variables to reflect increased size
                                index++;
                                count++;
                                firstInsert = false;
                            }
                            
                            // Assign any remainder to last group     
                            _children[index-1].RealSpace +=  temp - totalAllocated;      
                            
                            // Need controls repositioned
                            changed = true;                

                            // Mark layout as dirty
                            if (_tabbedGroups.AutoCalculateDirty)
                                _tabbedGroups.Dirty = true;
                        }
                    }
                }
            }
            
            // Change in contents requires entries to be repositioned
            if (changed)
                RepositionChildren();
        }

        protected TabGroupBase Add(TabGroupBase group)
        {
            // Remember reference
            _children.Add(group);

            // First group added to sequence?
            if (_children.Count == 1) 
            {
                // Add new child control
                _control.Controls.Add(group.GroupControl);
            }
            else
            {
                // Create a resizing bar
                ResizeBar bar = new ResizeBar(_direction, this);
                
                // Append resize bar between existing entries and new entry
                _control.Controls.Add(bar);
                
                // Append new group control
                _control.Controls.Add(group.GroupControl);
            }
            
            if (!_tabbedGroups.Initializing)
            {
                // Allocate space for the new child
                AllocateSpace(group);
                
                // Update child layout to reflect new proportional spacing values
                RepositionChildren();
            }
            
            // Mark layout as dirty
            if (_tabbedGroups.AutoCalculateDirty)
                _tabbedGroups.Dirty = true;

            return group;
        }
    
        protected TabGroupBase Insert(int index, TabGroupBase group)
        {
            // Range check index
            if (index < 0)
                throw new ArgumentOutOfRangeException("index", index, "Insert index must be at least 0");
                
            if (index >= _children.Count)
                throw new ArgumentOutOfRangeException("index", index, "Cannot insert after end of current entries");
        
            // Remember reference
            _children.Insert(index, group);

            // Create a resizing bar
            ResizeBar bar = new ResizeBar(_direction, this);
                
            // Append resize bar between existing entries and new entry
            _control.Controls.Add(bar);
                
            // Append new group control
            _control.Controls.Add(group.GroupControl);

            // Inserting at start of collection?
            if (index == 0)
            {
                // Reposition the bar and group to start of collection
                _control.Controls.SetChildIndex(bar, 0);
                _control.Controls.SetChildIndex(group.GroupControl, 0);
            }
            else
            {
                // Find correct index taking into account number of resize bars
                int	pos = index * 2 - 1;

                // Reposition the bar and Window to correct relative ordering
                _control.Controls.SetChildIndex(bar, pos++);
                _control.Controls.SetChildIndex(group.GroupControl, pos);
            }
            
            // Allocate space for the new child
            AllocateSpace(group);
            
            // Update child layout to reflect new proportional spacing values
            RepositionChildren();

            // Mark layout as dirty
            if (_tabbedGroups.AutoCalculateDirty)
                _tabbedGroups.Dirty = true;

            return group;
        }

        internal void Replace(TabGroupBase orig, TabGroupBase replace)
        {
            // Find array position of old item
            int origPos = _children.IndexOf(orig);
            
            // Transfer across the space occupied
            replace.RealSpace = orig.RealSpace;
            
            // Is this the only Window entry?
            if (_children.Count == 1)
            {
                // Remove Window from appearance

                // Use helper method to circumvent form Close bug
                ControlHelper.RemoveAt(_control.Controls, 0);
            }
            else
            {
                int pos = 0;

                // Calculate position of Window to remove				
                if (origPos != 0)
                    pos = origPos * 2 - 1;

                // Remove Window and bar 

                // Use helper method to circumvent form Close bug
                ControlHelper.RemoveAt(_control.Controls, pos);
                ControlHelper.RemoveAt(_control.Controls, pos);
            }
            
            // Inserting at start of collection?
            if (origPos == 0)
            {
                if (_children.Count > 1)
                {
                    // Create a resizing bar
                    ResizeBar bar = new ResizeBar(_direction, this);
                
                    // Append resize bar between existing entries and new entry
                    _control.Controls.Add(bar);

                    // Reposition the bar and group to start of collection
                    _control.Controls.SetChildIndex(bar, 0);
                }            

                // Append new group control
                _control.Controls.Add(replace.GroupControl);

                // Reposition the bar and group to start of collection
                _control.Controls.SetChildIndex(replace.GroupControl, 0);
            }
            else
            {
                // Create a resizing bar
                ResizeBar bar = new ResizeBar(_direction, this);
                
                // Append resize bar between existing entries and new entry
                _control.Controls.Add(bar);

                // Append new group control
                _control.Controls.Add(replace.GroupControl);
                    
                // Find correct index taking into account number of resize bars
                int	pos = origPos * 2 - 1;

                // Reposition the bar and Window to correct relative ordering
                _control.Controls.SetChildIndex(bar, pos++);
                _control.Controls.SetChildIndex(replace.GroupControl, pos);
            }
            
            // Update parentage
            replace.SetParent(this);
            
            // Replace the entry
            _children[origPos] = replace;
            
            // Update child layout to reflect new proportional spacing values
            RepositionChildren();

            // Mark layout as dirty
            if (_tabbedGroups.AutoCalculateDirty)
                _tabbedGroups.Dirty = true;
        }

        protected void AllocateSpace(TabGroupBase newGroup)
        {
            // Is this the only group?
            if (_children.Count == 1)
            {
                // Give it all the space
                newGroup.Space = 100m;
            }
            else
            {
                // Calculate how much space it should have
                Decimal newSpace = 100m / _children.Count;

                // How much space should we steal from each of the others
                Decimal reduceSpace = newSpace / (_children.Count - 1);

                // Actual space acquired so far 
                Decimal allocatedSpace = 0m;

                foreach(TabGroupBase group in _children)
                {
                    // Only process existing entries, not the new one
                    if (group != newGroup)
                    {
                        // How much space does the group currently have
                        Decimal currentSpace = group.Space;

                        // How much space to steal from it
                        Decimal xferSpace = reduceSpace;

                        // If group has less space then we want, just steal all it has
                        if (currentSpace < xferSpace)
                            xferSpace = currentSpace;

                        // Transfer the space across
                        currentSpace -= xferSpace;
                        
                        // Round the sensible number of decimal places
                        currentSpace = Decimal.Round(currentSpace, SPACE_PRECISION);
                        
                        // Update window with new space allocation
                        group.Space = currentSpace;

                        // Total up total space of all entries except new one
                        allocatedSpace += currentSpace;
                    }
                }

                // Assign all remaining space to new entry
                newGroup.Space = 100m - allocatedSpace;
            }
        }            
        
        protected void RemoveWindowSpace(Decimal space)
        {
            // Are there any children to process?
            if (_children.Count != 0)
            {
                // Is there only a single group left?
                if (_children.Count == 1)
                {
                    // Give it all the space
                    _children[0].Space = 100m;
                }
                else
                {
                    // Is there any space to reallocate?
                    if (space > 0)
                    {
                        // Total up all the values
                        Decimal totalAllocated = 0m;

                        // How much space should we add to each of the others
                        Decimal freedSpace = space / _children.Count;

                        foreach(TabGroupBase group in _children)
                        {
                            // We only retain a sensible level of precision
                            Decimal newSpace = Decimal.Round(group.Space + freedSpace, SPACE_PRECISION);

                            // Assign back new space
                            group.Space = newSpace;

                            // Total up all space so far 
                            totalAllocated += newSpace;
                        }

                        // Look for minor errors because not all fractions can be accurately represented in binary!
                        if (totalAllocated > 100m)
                        {
                            // Remove from first entry
                            _children[0].Space -= totalAllocated - 100m;
                        }
                        else if (totalAllocated < 100m)
                        {
                            // Add to first entry
                            _children[0].Space += 100m - totalAllocated;
                        }
                    }
                }
            }
        }
                
        protected void RepositionChildren()
        {
            // Area available for repositioning
            Rectangle clientRect = _control.ClientRectangle;

            // Is there anything to reposition?
            if (_children.Count > 0)
            {
                // Space available for allocation
                int space;
			
                // Starting position of first control 
                int delta;

                // Values depend on sequence direction

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产高清精品久久久久| 亚洲电影在线免费观看| 国产精品亚洲午夜一区二区三区| 9191精品国产综合久久久久久 | 日本韩国视频一区二区| 亚洲欧美一区二区三区国产精品 | 欧美亚洲一区三区| 天天操天天综合网| 久久综合丝袜日本网| 菠萝蜜视频在线观看一区| 亚洲人成网站在线| 7777女厕盗摄久久久| 精品一区二区三区久久| 中文字幕在线观看不卡视频| 色婷婷av一区二区三区大白胸| 一区二区三区电影在线播| 欧美亚洲一区二区在线观看| 麻豆久久久久久| 久久久精品综合| 欧美亚洲国产一区在线观看网站 | 国产高清久久久久| 亚洲精品大片www| 欧美一区二区三区公司| 东方欧美亚洲色图在线| 亚洲一区二区精品久久av| 精品国产电影一区二区| 99国产麻豆精品| 免费观看成人av| 亚洲天堂免费在线观看视频| 5月丁香婷婷综合| 成人丝袜18视频在线观看| 天天射综合影视| 欧美国产精品一区二区| 欧美蜜桃一区二区三区 | 色综合久久久久久久| 免费观看久久久4p| 依依成人精品视频| 久久影院午夜片一区| 在线观看不卡视频| 成人免费毛片a| 青青国产91久久久久久| 亚洲精品国产一区二区精华液| 日韩一级片在线观看| 欧美在线播放高清精品| 国产成人综合网| 麻豆精品新av中文字幕| 亚洲午夜成aⅴ人片| 国产精品国产精品国产专区不蜜 | 五月婷婷另类国产| 国产精品久久久久久一区二区三区 | 成人国产精品免费网站| 久久国产福利国产秒拍| 香蕉成人啪国产精品视频综合网| 中文一区二区完整视频在线观看| 精品日韩欧美在线| 91麻豆精品国产91久久久久久久久 | 欧美成人伊人久久综合网| 欧美日韩国产首页在线观看| 色综合一个色综合| av影院午夜一区| 韩国视频一区二区| 久久99精品视频| 日韩高清电影一区| 日本怡春院一区二区| 亚洲成人777| 亚洲高清不卡在线观看| 一区二区成人在线视频| 一区二区三区色| 亚洲欧美另类久久久精品| 亚洲欧洲精品天堂一级| 国产精品福利av| 亚洲欧洲精品一区二区三区不卡| 国产精品狼人久久影院观看方式| 久久精品在线免费观看| 亚洲精品在线观| 久久九九影视网| 久久久久99精品一区| 日本一区二区三区久久久久久久久不| 欧美mv日韩mv亚洲| 欧美精品一区二区三区一线天视频 | 日本大胆欧美人术艺术动态 | 国产激情精品久久久第一区二区| 激情综合网av| 国产一本一道久久香蕉| 国产69精品一区二区亚洲孕妇| 国产精品一线二线三线| 成人免费高清视频在线观看| 97精品国产露脸对白| 色婷婷久久综合| 欧美日韩视频专区在线播放| 91精品国产91综合久久蜜臀| 日韩三级免费观看| 国产欧美日韩不卡| 亚洲日本在线天堂| 日韩**一区毛片| 国产乱人伦偷精品视频不卡| jiyouzz国产精品久久| 欧美性极品少妇| 日韩一区二区视频| 久久久久久久久久久99999| 国产精品进线69影院| 亚洲丰满少妇videoshd| 日韩av网站在线观看| 国产传媒久久文化传媒| 91丨porny丨蝌蚪视频| 欧美欧美欧美欧美首页| 久久精品夜色噜噜亚洲aⅴ| 亚洲欧美精品午睡沙发| 美女任你摸久久 | 亚洲欧美在线另类| 首页国产丝袜综合| 国产精品一色哟哟哟| 欧美日免费三级在线| 日韩免费高清av| 亚洲婷婷综合色高清在线| 美女www一区二区| 97se亚洲国产综合自在线不卡| 欧美一区二区私人影院日本| 国产精品久久久久久亚洲毛片 | 韩国三级在线一区| 在线视频你懂得一区二区三区| 欧美va亚洲va在线观看蝴蝶网| 国产精品视频第一区| 日本午夜一区二区| 91日韩一区二区三区| 精品国产凹凸成av人网站| 亚洲免费在线看| 国产毛片一区二区| 67194成人在线观看| 亚洲视频电影在线| 国产制服丝袜一区| 欧美一区二区在线不卡| 一区二区三区四区国产精品| 国产成人亚洲综合a∨婷婷 | 日韩在线播放一区二区| 91在线视频网址| 久久精品这里都是精品| 日韩av中文在线观看| 91福利精品视频| 国产精品免费视频网站| 国产乱淫av一区二区三区 | 26uuu亚洲综合色欧美| 午夜精品久久久久久不卡8050| av欧美精品.com| 欧美激情一区在线观看| 久草精品在线观看| 欧美大片在线观看一区| 日韩经典中文字幕一区| 欧美老肥妇做.爰bbww| 亚洲人被黑人高潮完整版| 成人免费av网站| 国产拍揄自揄精品视频麻豆| 国产一区二区三区电影在线观看| 91精品国产福利| 蜜臀精品一区二区三区在线观看| 欧美精选一区二区| 亚洲成人午夜电影| 在线观看视频欧美| 一区二区三区蜜桃| 欧美性色aⅴ视频一区日韩精品| 亚洲色图欧美在线| 91网上在线视频| 一区二区三区在线视频播放| 色婷婷av一区| 亚洲一区二区三区三| 欧美日韩一区二区三区四区五区| 一区二区欧美在线观看| 欧美亚洲高清一区| 精品一二线国产| 五月天一区二区三区| 色综合天天天天做夜夜夜夜做| 精品福利视频一区二区三区| 免费观看成人av| 精品99999| 国产乱妇无码大片在线观看| www一区二区| 成人综合婷婷国产精品久久| 国产精品女上位| 一本到高清视频免费精品| 亚洲电影你懂得| 日韩美女天天操| 国产最新精品免费| 中文一区二区在线观看| 色一情一伦一子一伦一区| 亚洲国产精品一区二区久久恐怖片| 欧美日韩一区二区三区四区| 蜜臀av性久久久久蜜臀aⅴ四虎| 精品少妇一区二区| 99久久久久免费精品国产 | 欧美性猛片xxxx免费看久爱| 日韩精品高清不卡| 久久久噜噜噜久噜久久综合| 91色在线porny| 五月婷婷激情综合| 久久亚洲捆绑美女| 91麻豆.com| 美女视频黄 久久| 中文字幕在线一区免费| 欧美日韩一区中文字幕| 国产精品亚洲视频|