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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tabgroupsequence.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 4 頁
字號:
                
            // Check our own leaf nodes first
            foreach(TabGroupBase group in _children)
                if (group.IsLeaf)
                    if (group == prominent)
                        return true;

            // Need to check sub-sequences?
            if (recurse)
            {
                // Check our child sequences 
                foreach(TabGroupBase group in _children)
                    if (group.IsSequence)
                        if (group.ContainsProminent(recurse))
                            return true;
            }
                                    
            // Not found
            return false;                            
        }

        public override void SaveToXml(XmlTextWriter xmlOut)
        {
            // Output standard values appropriate for all Sequence instances
            xmlOut.WriteStartElement("Sequence");
            xmlOut.WriteAttributeString("Count", _children.Count.ToString());
            xmlOut.WriteAttributeString("Unique", _unique.ToString());
            xmlOut.WriteAttributeString("Space", _space.ToString());
            xmlOut.WriteAttributeString("Direction", _direction.ToString());

            // Output each sub element
            foreach(TabGroupBase tgb in _children)
                tgb.SaveToXml(xmlOut);
                
            xmlOut.WriteEndElement();
        }

        public override void LoadFromXml(XmlTextReader xmlIn)
        {
            // Grab the expected attributes
            string rawCount = xmlIn.GetAttribute(0);
            string rawUnique = xmlIn.GetAttribute(1);
            string rawSpace = xmlIn.GetAttribute(2);
            string rawDirection = xmlIn.GetAttribute(3);

            // Convert to correct types
            int count = Convert.ToInt32(rawCount);
            int unique = Convert.ToInt32(rawUnique);
            Decimal space = Convert.ToDecimal(rawSpace);
            Direction direction = (rawDirection == "Horizontal" ? Direction.Horizontal : 
                                                                  Direction.Vertical);
            
            // Update myself with new values
            _unique = unique;
            _space = space;
            _direction = direction;
            
            // Load each of the children
            for(int i=0; i<count; i++)
            {
                // Read the next Element
                if (!xmlIn.Read())
                    throw new ArgumentException("An element was expected but could not be read in");

                TabGroupBase newElement = null;

                // Is it another sequence?
                if (xmlIn.Name == "Sequence")
                    newElement = new TabGroupSequence(_tabbedGroups, this);
                else if (xmlIn.Name == "Leaf")
                    newElement = new TabGroupLeaf(_tabbedGroups, this);
                else
                    throw new ArgumentException("Unknown element was encountered");
            
                bool expectEndElement = !xmlIn.IsEmptyElement;

                // Load its config
                newElement.LoadFromXml(xmlIn);
                   
                // Add new element to the collection
                Add(newElement);

                // Do we expect and end element to occur?
                if (expectEndElement)
                {
                    // Move past the end element
                    if (!xmlIn.Read())
                        throw new ArgumentException("Could not read in next expected node");

                    // Check it has the expected name
                    if (xmlIn.NodeType != XmlNodeType.EndElement)
                        throw new ArgumentException("EndElement expected but not found");
                }
            }
        }

        public void Compact()
        {
            Compact(_tabbedGroups.CompactOptions);
        }

        public void Compact(TabbedGroups.CompactFlags flags)
        {
            // Compact each child sequence
            foreach(TabGroupBase tgb in _children)
                if (tgb.IsSequence)
                    (tgb as TabGroupSequence).Compact(flags);
        
            // Remove dangling entries
            CompactRemoveEmptyTabLeafs(flags);
            CompactRemoveEmptyTabSequences(flags);
            
            // Integrate single entries
            CompactReduceSingleEntries(flags);
            
            // Integrate sub-sequences which run in same direction
            CompactReduceSameDirection(flags);
        }
        
        public void Reposition()
        {
            // Update child layout to reflect new proportional spacing values
            RepositionChildren();
        }

        protected void CompactRemoveEmptyTabLeafs(TabbedGroups.CompactFlags flags)
        {
            // Should we check for empty leaf nodes?
            if ((flags & Controls.TabbedGroups.CompactFlags.RemoveEmptyTabLeaf) != 0)
            {
                int count = _children.Count;
                
                for(int index=0; index<count; index++)
                {
                    // Only interested in leaf entries
                    if (_children[index].IsLeaf)
                    {
                        TabGroupLeaf tgl = (TabGroupLeaf)_children[index];
                        
                        // Is this an empty leaf node?
                        if (tgl.Count == 0)
                        {
                            // Update active leaf setting
                            if (_tabbedGroups.ActiveLeaf == tgl)
                            {
                                TabGroupLeaf newLeaf = _tabbedGroups.NextLeaf(tgl);
                                
                                if (newLeaf == null)
                                    newLeaf = _tabbedGroups.PreviousLeaf(tgl);
                                    
                                _tabbedGroups.ActiveLeaf = newLeaf;
                            }

                            // Need to remove the redundant entry
                            RemoveAt(index);
                            
                            // Reduce number of entries left to check
                            count--;
                            
                            // Move backwards so the next increment stays on same index
                            index--;
                        
                            // Mark layout as dirty
                            if (_tabbedGroups.AutoCalculateDirty)
                                _tabbedGroups.Dirty = true;
                        }
                    }
                }
            }
        }

        protected void CompactRemoveEmptyTabSequences(TabbedGroups.CompactFlags flags)
        {
            // Should we check for empty sequence nodes?
            if ((flags & Controls.TabbedGroups.CompactFlags.RemoveEmptyTabSequence) != 0)
            {
                int count = _children.Count;
                
                for(int index=0; index<count; index++)
                {
                    // Only interested in sequence entries
                    if (_children[index].IsSequence)
                    {
                        TabGroupSequence tgs = (TabGroupSequence)_children[index];
                        
                        // Is this an empty sequence node?
                        if (tgs.Count == 0)
                        {
                            // Need to remove the redundant entry
                            RemoveAt(index);
                            
                            // Reduce number of entries left to check
                            count--;
                            
                            // Move backwards so the next increment stays on same index
                            index--;

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

        protected void CompactReduceSingleEntries(TabbedGroups.CompactFlags flags)
        {
            bool changed = false;
        
            // Should we check for single instance nodes?
            if ((flags & Controls.TabbedGroups.CompactFlags.ReduceSingleEntries) != 0)
            {
                int count = _children.Count;
                
                for(int index=0; index<count; index++)
                {
                    // Only interested in sequence entries
                    if (_children[index].IsSequence)
                    {
                        TabGroupSequence tgs = (TabGroupSequence)_children[index];
                        
                        // Does this entry only have a single child
                        if (tgs.Count == 1)
                        {
                            // Remember how much space the base entry occupies
                            Decimal temp = tgs.RealSpace;
                            
                            // Get reference to only child
                            TabGroupBase child = tgs[0];
                            
                            // Update parentage
                            child.SetParent(this);
                            
                            // Find the child control to be replaced
                            int childPos = _control.Controls.IndexOf(tgs.GroupControl);
                            
                            // Remove it
                            ControlHelper.RemoveAt(_control.Controls, childPos);
                            
                            // Add new child control in its place
                            _control.Controls.Add(child.GroupControl);
                            _control.Controls.SetChildIndex(child.GroupControl, childPos);
                            
                            // Replace the middle object with the child
                            _children.RemoveAt(index);
                            _children.Insert(index, child);
                            
                            // Restore its correct spacing
                            child.RealSpace = temp;

                            // 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 void CompactReduceSameDirection(TabbedGroups.CompactFlags flags)
        {
            bool changed = false;
        
            // Should we check for same direction sub-sequences?
            if ((flags & Controls.TabbedGroups.CompactFlags.ReduceSameDirection) != 0)
            {
                int count = _children.Count;
                
                for(int index=0; index<count; index++)
                {
                    // Only interested in sequence entries
                    if (_children[index].IsSequence)
                    {
                        TabGroupSequence tgs = (TabGroupSequence)_children[index];
                        
                        // Does it run in same direction as ourself?
                        if (_direction == tgs.Direction)
                        {
                            // Remember how much space the base entry occupies
                            Decimal temp = tgs.RealSpace;

                            // Find the child control to be replaced
                            int childPos = _control.Controls.IndexOf(tgs.GroupControl);

                            // Need to remove a resize bar before the control?
                            if (childPos > 0)
                                ControlHelper.RemoveAt(_control.Controls, childPos);
                                
                            // Remove the actual control
                            ControlHelper.RemoveAt(_control.Controls, childPos);

                            // Remove the intermediate group
                            _children.RemoveAt(index);
                            
                            // Reflect change in size
                            count--;

                            Decimal totalAllocated = 0m;

                            // Add in each sub group in turn
                            int subCount = tgs.Count;
                            
                            bool firstInsert = true;
                
                            for(int subIndex=0; subIndex<subCount; subIndex++)
                            {
                                TabGroupBase tgb = tgs[subIndex];
                            
                                // What percentage of original space did it have?
                                Decimal orig = tgb.RealSpace;
                                
                                // Give it the same proportion of new space
                                Decimal update = Decimal.Round(temp / 100 * orig, SPACE_PRECISION);
                            
                                // Keep total actually allocated
                                totalAllocated += update;
                            
                                // Use new proportion
                                tgb.RealSpace = update;
                                
                                // Update parentage
                                tgb.SetParent(this);

                                // Does new child control need a resizing bar?                            
                                if ((childPos > 0) && !firstInsert)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线观看视频| 日韩一区有码在线| 中文一区二区在线观看| 一区二区三区在线视频播放| 精品一区二区精品| 欧美色男人天堂| 一色屋精品亚洲香蕉网站| 紧缚捆绑精品一区二区| 欧美欧美欧美欧美| 一区二区三区电影在线播| 国产成人av一区二区三区在线| 中文字幕一区二区三区在线不卡| 亚洲一二三区不卡| av成人免费在线| 国产精品福利一区二区| 国产一区二区三区黄视频| 欧美一级日韩不卡播放免费| 亚洲丰满少妇videoshd| 日本二三区不卡| 亚洲男女一区二区三区| 成年人网站91| 国产精品国产三级国产aⅴ中文 | 午夜视黄欧洲亚洲| 99精品偷自拍| 一区二区视频在线| 91网址在线看| 亚洲精品国产高清久久伦理二区| 国产成人av影院| 国产视频一区在线播放| 国产一区二区在线看| 精品国产3级a| 国产一区二区三区黄视频| 精品88久久久久88久久久| 精品一区二区三区日韩| 亚洲精品一区二区三区蜜桃下载 | 欧美日韩国产一区| 亚洲国产欧美在线| 欧美日韩一级黄| 青青青爽久久午夜综合久久午夜| 91麻豆精品一区二区三区| 亚洲另类春色国产| 欧美日韩三级在线| 蜜桃一区二区三区在线| 欧美成人午夜电影| 国产成人免费在线观看| 中文字幕中文在线不卡住| 色综合天天综合网国产成人综合天 | 色88888久久久久久影院野外 | 国产一区二区精品久久99| 精品国产一区二区国模嫣然| 国产成人免费在线观看| 亚洲人成在线播放网站岛国| 欧美色图片你懂的| 久久99久久精品欧美| 国产嫩草影院久久久久| 91猫先生在线| 免费高清成人在线| 国产精品国产自产拍在线| 成人欧美一区二区三区| 欧美午夜不卡在线观看免费| 美女视频一区二区三区| 国产精品全国免费观看高清| 欧美在线高清视频| 国产美女在线精品| 亚洲综合在线第一页| 日韩欧美激情一区| 色综合久久久久| 看电视剧不卡顿的网站| 亚洲欧美国产毛片在线| 欧美成人国产一区二区| 91色婷婷久久久久合中文| 六月丁香婷婷色狠狠久久| 亚洲人一二三区| 精品免费视频.| 欧美视频在线观看一区二区| 韩国三级在线一区| 亚洲va天堂va国产va久| 国产精品久久久久aaaa| 日韩三级中文字幕| 在线观看日产精品| 国产91丝袜在线观看| 日产国产欧美视频一区精品 | 久久精品国产一区二区| 一区二区三区中文字幕电影| 久久毛片高清国产| 欧美精品免费视频| 国产欧美一区二区三区网站 | 亚洲精品日韩专区silk| 国产婷婷一区二区| 日韩视频免费直播| 欧美剧情片在线观看| jizzjizzjizz欧美| 大胆亚洲人体视频| 精品一区二区三区久久久| 婷婷久久综合九色国产成人| 亚洲精品videosex极品| 国产精品色哟哟网站| www久久久久| 精品三级在线看| 欧美一级黄色录像| 欧美日韩国产综合久久| 欧美视频在线不卡| 欧洲一区二区av| 色呦呦网站一区| 97se亚洲国产综合自在线不卡| 狠狠色综合播放一区二区| 久久精品99国产精品| 美女久久久精品| 久久97超碰国产精品超碰| 免费一级片91| 久久精工是国产品牌吗| 久久99精品久久久久久久久久久久| 亚洲黄色小视频| 一区二区三区高清在线| 一区二区三区毛片| 亚洲午夜av在线| 日韩在线一区二区| 美女视频黄频大全不卡视频在线播放| 国产精品久久久久aaaa| 亚洲丝袜自拍清纯另类| 亚洲天堂免费在线观看视频| 亚洲欧洲成人精品av97| 亚洲精品乱码久久久久久日本蜜臀| 日本一区二区视频在线观看| 国产精品免费久久久久| 亚洲同性gay激情无套| 亚洲综合999| 日本不卡免费在线视频| 精品一区二区三区香蕉蜜桃| 国产91精品精华液一区二区三区| 激情综合色播激情啊| 成人性视频网站| 97精品电影院| 欧美顶级少妇做爰| 久久九九久精品国产免费直播| 久久午夜免费电影| 亚洲免费在线视频| 日韩精品亚洲专区| 国产精品一二三| 在线免费观看日韩欧美| 911精品国产一区二区在线| 日韩片之四级片| 国产精品久久久久久久久图文区 | 99久久婷婷国产精品综合| 色吧成人激情小说| 欧美一区二区成人| 国产精品视频一区二区三区不卡| 中文字幕日韩av资源站| 日韩中文欧美在线| 99视频一区二区| 欧美精品少妇一区二区三区| 久久久91精品国产一区二区精品| 国产精品看片你懂得 | 国产日韩精品一区二区浪潮av| 中文字幕一区三区| 蜜桃av一区二区三区电影| 成人白浆超碰人人人人| 88在线观看91蜜桃国自产| 欧美韩日一区二区三区| 日本vs亚洲vs韩国一区三区二区| 粉嫩aⅴ一区二区三区四区| 7777精品伊人久久久大香线蕉最新版 | 欧美高清在线一区二区| 国产精品色眯眯| 日韩电影一区二区三区| 91丨九色丨蝌蚪丨老版| 国产天堂亚洲国产碰碰| 日韩av一区二区三区四区| av电影天堂一区二区在线 | 99视频精品在线| 久久综合成人精品亚洲另类欧美| 亚洲精选视频在线| 国产91在线|亚洲| 日韩欧美国产综合一区| 亚洲一区二区三区中文字幕在线| 国产精品资源站在线| 91精品欧美福利在线观看| 亚洲夂夂婷婷色拍ww47| 99精品视频一区二区三区| 国产欧美一区二区三区鸳鸯浴 | 欧美日本精品一区二区三区| 亚洲视频香蕉人妖| 岛国一区二区三区| 26uuu国产在线精品一区二区| 亚洲国产美女搞黄色| 色婷婷综合久色| 国产精品久久毛片a| 国产ts人妖一区二区| 亚洲精品在线网站| 久久99精品国产.久久久久久| 色94色欧美sute亚洲13| 亚洲视频免费看| eeuss影院一区二区三区| 国产精品天美传媒沈樵| 国产成人在线影院 | 国产69精品久久777的优势| 精品国产乱码久久久久久久| 久草这里只有精品视频| 欧美精品一区二区三区一线天视频 | 26uuu久久综合|