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

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

?? autohidepanel.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 5 頁
字號:
            _currentWCT.Width = _slideRect.Width;
            _currentWCT.Height = _slideRect.Height;

            Size barSize = _currentPanel.ResizeBarSize();

            // Set the initial size/location of Panel and hosted WCT
            switch(this.Dock)
            {
                case DockStyle.Left:
                    _currentPanel.Size = new Size(0, this.Height);
                    _currentPanel.Location = new Point(this.Right, this.Top);
                    _currentWCT.Height = this.Height;
                    break;
                case DockStyle.Right:
                    _currentPanel.Size = new Size(0, this.Height);
                    _currentPanel.Location = new Point(this.Left, this.Top);
                    _currentWCT.Height = this.Height;
                    break;
                case DockStyle.Top:
                    _currentPanel.Size = new Size(this.Width, 0);
                    _currentPanel.Location = new Point(this.Left, this.Bottom);
                    _currentWCT.Width = this.Width;
                    break;
                case DockStyle.Bottom:
                    _currentPanel.Size = new Size(this.Width, 0);
                    _currentPanel.Location = new Point(this.Left, this.Top);
                    _currentWCT.Width = this.Width;
                    break;
            }

            // Finally we are ready to show it
            _currentPanel.Show();
                
            // We want to snoop of changes of focus to and from Panel and its children
            MonitorPanel(true);

            // We are showing and not hiding with the timer
            _slideOut = true;
                
            // Kick off the slide timer
            StartSlideTimer();
        }
        
        protected void OnPagesLeave(TabStub sender)
        {
            // Do we have anything to dismiss?
            if ((_currentPanel != null) && (_currentWCT != null))
            {
                // Only dimiss if the panel does not have focus
                if (!_currentPanel.ContainsFocus)
                    StartDismissTimer();
            }
        }
        
        public void RemoveContent(Content c)
        {
            TabStub targetTS = null;
            Crownwood.Magic.Controls.TabPage targetPage = null;
        
            // Find the TabStub group this content is inside
            foreach(TabStub ts in this.Controls)
            {
                // Test each page of the TabStub control
                foreach(Crownwood.Magic.Controls.TabPage page in ts.TabPages)
                {
                    Content pageC = page.Tag as Content;
                    
                    if (pageC == c)
                    {
                        // Remember found target
                        targetTS = ts;
                        targetPage = page;
                        break;
                    }
                }
            }            
            
            // Found a target?
            if ((targetTS != null) && (targetPage != null))
            {
                // Are we removing the last entry in the WCT?
                if (targetTS.TabPages.Count == 1)
                {
                    int count = targetTS.WindowContentTabbed.Contents.Count;
                    
                    // Remove all contents from the WCT
                    for(int i=0; i<count; i++)
                        targetTS.WindowContentTabbed.Contents.RemoveAt(0);

                    // If any panel/WCT showing
                    if (targetTS.WindowContentTabbed == _currentWCT)
                    {
                        // Remove Panel/WCT from display and stop timers
                        KillDisplayedWindow();
                    }
                                        
                    // Remove the WCT from TabStub
                    ControlHelper.Remove(targetTS.Controls, targetTS.WindowContentTabbed);

                    // Remove the stub from this panel
                    ControlHelper.Remove(this.Controls, targetTS);
                    
                    // Cleanup gracefully
                    targetTS.Dispose();                    
                }
                else
                {
                    // Currently showing some pages?
                    if (targetTS.WindowContentTabbed == _currentWCT)
                    {
                        bool found = false;
                    
                        // Is it our page?
                        foreach(Content cWCT in _currentWCT.Contents)
                        {
                            if (cWCT == c)
                            {
                                // Remove our page from view
                                found = true;                     
                                break;
                            }
                        }
                        
                        // Remove unwanted page
                        if (found)
                        {
                            // Find its position index
                            int index = _currentWCT.Contents.IndexOf(c);
                        
                            // Remove just the selected entry from stub
                            targetTS.TabPages.RemoveAt(index);
                        
                            // Remove the selected entry from WCT
                            _currentWCT.Contents.RemoveAt(index);
                        }
                    }
                
                    // Remove just the selected entry from stub
                    targetTS.TabPages.Remove(targetPage);
                }

                // No longer inside an auto hidden panel                   
                c.AutoHidePanel = null;
            }

            // If no more contents remain then hide
            if (this.Controls.Count == 0)
                this.Hide();
        }
        
        protected void OnPageClose(object sender, EventArgs e)
        {
            // Find the TabStub instance for the showing WCT
            foreach(TabStub ts in this.Controls)
            {
                // Does this stub match the one showing?
                if (ts.WindowContentTabbed == _currentWCT)
                {
                    ContentCollection cc = new ContentCollection();
                
                    // Get access to Content instance being hidden
                    Content current = _currentWCT.Contents[ts.SelectedIndex];
                    
                    // Check if the hide button is allowed to work
                    if (!_manager.OnContentHiding(current))
                    {
                        // Are we removing the last entry in the WCT?
                        if (ts.TabPages.Count == 1)
                        {
                            // We need to update AutoHide property for all of them
                            foreach(Content c in _currentWCT.Contents)
                                cc.Add(c);
                        
                            // Remove Panel/WCT from display and stop timers
                            KillDisplayedWindow();

                            // Remove the WCT from the WCT
                            ControlHelper.Remove(ts.Controls, ts.WindowContentTabbed);

                            // Remove the stub from this panel
                            ControlHelper.Remove(this.Controls, ts);                    

                            // Cleanup gracefully
                            ts.Dispose();
                        }
                        else
                        {
                            // Which entry in the stub is currently selected?
                            int index = ts.SelectedIndex;

                            // Need to update AutoHide property for removed content
                            cc.Add(_currentWCT.Contents[index]);

                            // Remove just the selected entry from stub
                            ts.TabPages.RemoveAt(index);
                            
                            // Remove the selected entry from WCT
                            _currentWCT.Contents.RemoveAt(index);
                        }

                        // Content instances no longer in AutoHidden state
                        foreach(Content c in cc)
                        {
                            // Remember this AutoHide state for persistence
                            c.RecordAutoHideRestore();

                            // No longer in the auto hidden mode                    
                            c.AutoHidden = false;
                            c.AutoHidePanel = null;
                        }
                    }
                    
                    // Generate hidden event now content is not visible
                    _manager.OnContentHidden(current);
                    
                    break;
                }
            }
            
            // If no more contents remain then hide
            if (this.Controls.Count == 0)
                this.Hide();
        }
		
        protected void OnPageAutoHide(object sender, EventArgs e)
        {
            // Do not generate hiding/hidden/shown events
            _manager.SurpressVisibleEvents += 1;
        
            // Find the TabStub instance for the showing WCT
            foreach(TabStub ts in this.Controls)
            {
                // Does this stub match the one showing?
                if (ts.WindowContentTabbed == _currentWCT)
                {
                    int count = ts.TabPages.Count;
                    
                    // Record the auto hide state in reverse order, must record the state
                    // before 'KillDisplayedWindow' as the process of recording state requires
                    // the content to be inside a WindowContent instance
                    for(int i=count-1; i>=0; i--)
                    {
                        // Get access to the content the page represents
                        Content c = ts.TabPages[i].Tag as Content;

                        // Remember this AutoHide state for persistence
                        c.RecordAutoHideRestore();
                    }
                        
                    // Remove Panel/WCT from display and stop timers
                    KillDisplayedWindow();

                    // Remove the stub from this panel
                    ControlHelper.Remove(this.Controls, ts);
                    
                    // Now that the Window/Panel have been killed we are ready to 
                    // alter the AutoHidden state of each content and restore state
                    for(int i=count-1; i>=0; i--)
                    {
                        // Get access to the content the page represents
                        Content c = ts.TabPages[i].Tag as Content;

                        // No longer in the auto hidden mode                    
                        c.AutoHidden = false;
                        c.AutoHidePanel = null;
                        
                        // Restore into normal docked state
                        _manager.ShowContent(c);
                    }
                                        
                    break;
                }
            }
            
            // If no more contents remain then hide
            if (this.Controls.Count == 0)
                this.Hide();

            // Enable generation hiding/hidden/shown events
            _manager.SurpressVisibleEvents -= 1;
        }
    
        protected void OnPageContextMenu(Point screenPos)
        {
            _manager.OnShowContextMenu(screenPos);
       }

        protected void OnSlideTick(object sender, EventArgs e)
        {
            // Is the slide timer supposed to be running?
            if (_slideRunning)
            {            
                // Safety check that timer does not expire after our death
                if (this.IsDisposed || _currentPanel.IsDisposed || _currentWCT.IsDisposed)
                {
                    StopSlideTimer();
                    return;
                }

                // Use the current size/location as the starting point for changes
                Rectangle rect = new Rectangle(_currentPanel.Left, _currentPanel.Top, 
                                            _currentPanel.Width, _currentPanel.Height);
    		    
		        // How big is the resize bar inside the Panel?
                Size barSize = _currentPanel.ResizeBarSize();

                // Is this the last sliding step? 
                // (increase test by 1 because we have not yet incremented it)
                bool lastStep = ((_slideStep+1) >= _slideSteps);

                // Bringing the Panel into view?
                if (_slideOut)
                {
                    // Bring Panel another step into full view
                    switch(this.Dock)
                    {
                        case DockStyle.Left:
                            if (lastStep)
                                rect.Width = _slideRect.Width + barSize.Width;
                            else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人性生交大片免费看中文| 一区二区三区在线观看国产| 国产日韩视频一区二区三区| 久久国产精品免费| 欧美一区二区三区免费在线看| 亚洲国产日产av| 欧美色图第一页| 亚洲国产中文字幕在线视频综合| 不卡的电影网站| 亚洲成人一区二区| 欧美一区二区在线不卡| 免费成人在线播放| 精品成人一区二区三区四区| 国产成都精品91一区二区三| 中文字幕精品在线不卡| 97久久超碰国产精品| 亚洲综合无码一区二区| 制服丝袜中文字幕一区| 国产一区二区三区av电影| 国产精品人成在线观看免费| 欧美视频一区在线观看| 美女视频免费一区| 欧美激情中文字幕| 在线视频综合导航| 免费亚洲电影在线| 国产精品无人区| 欧美吻胸吃奶大尺度电影| 蜜臀av性久久久久蜜臀av麻豆| 国产亚洲短视频| 91久久人澡人人添人人爽欧美| 日韩精品乱码av一区二区| 久久综合色8888| 在线亚洲精品福利网址导航| 黄色资源网久久资源365| 亚洲视频一区二区在线| 欧美大肚乱孕交hd孕妇| 99vv1com这只有精品| 毛片一区二区三区| 亚洲欧美视频在线观看视频| 欧美一卡2卡3卡4卡| 白白色亚洲国产精品| 蜜臀av性久久久久蜜臀aⅴ| 国产精品久久久久国产精品日日| 欧美日本乱大交xxxxx| 国产精品1区2区3区| 亚洲小说欧美激情另类| 国产日韩欧美精品电影三级在线| 在线不卡中文字幕| 99久久99久久精品免费看蜜桃| 伦理电影国产精品| 亚洲综合丝袜美腿| 亚洲欧洲美洲综合色网| 日韩精品一区二区三区在线播放 | 国产精品久久久久一区二区三区 | 亚洲免费av高清| 久久久久久一二三区| 欧美日本在线视频| 色综合久久中文综合久久牛| 久久99精品国产麻豆婷婷| 一区二区三区四区高清精品免费观看 | 欧美一区二区视频免费观看| 色综合亚洲欧洲| 成人一道本在线| 韩国理伦片一区二区三区在线播放| 亚洲欧美国产77777| 国产日韩欧美不卡在线| 精品国精品国产| 91精品国产乱| 欧美日韩国产首页在线观看| 不卡视频在线看| 国产成人精品www牛牛影视| 精品在线亚洲视频| 日本在线不卡视频| 午夜精品福利一区二区蜜股av | 制服丝袜亚洲精品中文字幕| 色噜噜夜夜夜综合网| 色哟哟亚洲精品| 91麻豆自制传媒国产之光| av电影在线观看一区| www.欧美色图| 99热精品一区二区| 91亚洲国产成人精品一区二区三| 国产高清在线观看免费不卡| 狠狠色伊人亚洲综合成人| 裸体健美xxxx欧美裸体表演| 日韩av在线免费观看不卡| 日韩福利电影在线| 日韩不卡一二三区| 精品中文字幕一区二区| 久久se这里有精品| 精品中文av资源站在线观看| 韩国av一区二区三区四区 | 欧美高清在线一区二区| 亚洲国产高清在线观看视频| 亚洲国产精品99久久久久久久久 | 久久蜜桃香蕉精品一区二区三区| 91精品国产麻豆国产自产在线 | 亚洲欧美日韩系列| 一区二区三区电影在线播| 亚洲成av人片在www色猫咪| 首页国产欧美久久| 久久精品国产一区二区三| 九九在线精品视频| 丁香六月综合激情| 欧美亚洲国产怡红院影院| 91精品福利在线一区二区三区| 欧美成人乱码一区二区三区| 久久嫩草精品久久久久| 国产精品国产a级| 亚洲综合男人的天堂| 男男成人高潮片免费网站| 国产激情一区二区三区桃花岛亚洲| av在线免费不卡| 777奇米四色成人影色区| 久久久久久久电影| 亚洲欧美综合另类在线卡通| 午夜精品一区二区三区免费视频 | 国产日产亚洲精品系列| 一区二区三区四区蜜桃 | 国产成人免费高清| 欧美中文字幕一二三区视频| 欧美一区二区日韩一区二区| 国产日韩在线不卡| 午夜久久电影网| 成人av集中营| 欧美视频在线不卡| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 97精品久久久午夜一区二区三区| 精品婷婷伊人一区三区三| 久久毛片高清国产| 亚洲一线二线三线视频| 国产成a人亚洲精| 欧美日韩精品欧美日韩精品一综合| 久久久久一区二区三区四区| 亚洲一区免费视频| 成人一区二区视频| 日韩欧美电影一区| 一区二区三区欧美亚洲| 国产精品自拍一区| 欧美日韩大陆一区二区| 亚洲欧美在线另类| 国产一区二区三区蝌蚪| 欧美视频一二三区| 中文字幕免费观看一区| 麻豆精品久久精品色综合| 在线精品视频免费播放| 国产精品成人午夜| 国产精品一二三四| 精品少妇一区二区三区视频免付费| 亚洲综合久久久| 91视视频在线直接观看在线看网页在线看| 日韩一区二区三区免费看| 亚洲最大的成人av| 91在线免费视频观看| 国产日韩一级二级三级| 韩国v欧美v亚洲v日本v| 日韩午夜av电影| 婷婷久久综合九色综合伊人色| 在线精品国精品国产尤物884a| 中文字幕亚洲在| 成人综合婷婷国产精品久久免费| 日韩欧美一区二区三区在线| 性做久久久久久| 欧美日韩免费高清一区色橹橹 | 国产一区二区三区精品视频| 欧美一区二区在线看| 免费观看日韩电影| 91精品婷婷国产综合久久竹菊| 亚洲高清在线视频| 欧美亚一区二区| 亚洲成av人片一区二区梦乃| 欧美日韩一区久久| 亚洲午夜久久久久久久久电影网| 91国产精品成人| 亚洲国产人成综合网站| 欧美日韩免费视频| 免费观看一级欧美片| 欧美一级一区二区| 黄页网站大全一区二区| 2023国产精品| 成人一区二区三区视频在线观看| 国产精品女主播在线观看| 9i在线看片成人免费| 亚洲另类一区二区| 欧美三级视频在线| 精品综合免费视频观看| 国产精品欧美精品| 91久久精品午夜一区二区| 亚洲国产精品久久久久秋霞影院| 欧美喷潮久久久xxxxx| 奇米在线7777在线精品| 欧美肥妇bbw| 国产在线视频一区二区三区| 国产精品丝袜一区| 欧美日韩一区不卡| 国产专区综合网| 亚洲影视资源网| 26uuu亚洲| 在线亚洲免费视频| 国内精品在线播放|