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

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

?? dockingmanager.cs

?? Magic Library 1.7,有說明文檔
?? CS
?? 第 1 頁 / 共 5 頁
字號:
			_insideFill = (bool)Convert.ToBoolean(insideFill);
			_innerMinimum = ConversionHelper.StringToSize(innerSize);

			ContentCollection cc = new ContentCollection();

			do
			{
                // Read the next Element
				if (!xmlIn.Read())
					throw new ArgumentException("An element was expected but could not be read in");

				// Have we reached the end of root element?
				if ((xmlIn.NodeType == XmlNodeType.EndElement) && (xmlIn.Name == "DockingConfig"))
					break;

				// Is the element name 'Content'
				if (xmlIn.Name == "Content")
				{
                    // Process this Content element
                    cc.Insert(0, new Content(xmlIn, formatVersion));
                }
				else
				{
				    // Must have reached end of our code, let the custom handler deal with this
                    OnLoadCustomConfig(xmlIn);

                    // Ignore anything else that might be in the XML
                    xmlIn.Close();			
                   
                    // Exit
                    break;
                }

			} while(!xmlIn.EOF);

			xmlIn.Close();			

			// Reduce flicker during window operations
			_container.SuspendLayout();

			// Hide all the current content items
			HideAllContents();

			// Attempt to apply loaded settings
			foreach(Content loaded in cc)
			{
				Content c = _contents[loaded.Title];

				// Do we have any loaded information for this item?
				if (c != null)
				{
					// Copy across the loaded values of interest
                    c.Docked = loaded.Docked;
                    c.AutoHidden = loaded.AutoHidden;
                    c.CaptionBar = loaded.CaptionBar;
                    c.CloseButton = loaded.CloseButton;
                    c.DisplaySize = loaded.DisplaySize;
					c.DisplayLocation = loaded.DisplayLocation;
					c.AutoHideSize = loaded.AutoHideSize;
					c.FloatingSize = loaded.FloatingSize;
					c.DefaultRestore = loaded.DefaultRestore;
					c.AutoHideRestore = loaded.AutoHideRestore;
					c.DockingRestore = loaded.DockingRestore;
					c.FloatingRestore = loaded.FloatingRestore;

					// Allow the Restore objects a chance to rehook into object instances
					c.ReconnectRestore();					

					// Was the loaded item visible?
					if (loaded.Visible)
					{
						// Make it visible now
						ShowContent(c);
					}
				}
			}

			// Reapply any fill style required
			AddInnerFillStyle();

			// Reduce flicker during window operations
			_container.ResumeLayout();
			
			// If any AutoHostPanel's have become visible we need to force a repaint otherwise
			// the area not occupied by the TabStub instances will be painted the correct color
			_ahpLeft.Invalidate();
            _ahpRight.Invalidate();
            _ahpTop.Invalidate();
            _ahpBottom.Invalidate();
        }
        
        public void PropogateNameValue(PropogateName name, object value)
        {
            foreach(Control c in _container.Controls)
            {
                Zone z = c as Zone;

                // Only interested in our Zones
                if (z != null)
                    z.PropogateNameValue(name, value);
            }

            // If the docking manager is created for a Container that does not
            // yet have a parent control then we need to double check before
            // trying to enumerate the owned forms.
            if (_container.FindForm() != null)
            {
                foreach(Form f in _container.FindForm().OwnedForms)
                {
                    FloatingForm ff = f as FloatingForm;
                    
                    // Only interested in our FloatingForms
                    if (ff != null)
                        ff.PropogateNameValue(name, value);
                }
            }
            
            // Propogate into the AutoHidePanel objects
            _ahpTop.PropogateNameValue(name, value);
            _ahpLeft.PropogateNameValue(name, value);
            _ahpRight.PropogateNameValue(name, value);
            _ahpBottom.PropogateNameValue(name, value);
        }

		public virtual bool OnContentHiding(Content c)
        {
            CancelEventArgs cea = new CancelEventArgs();

            if (_surpressVisibleEvents == 0)
            {
                // Allow user to prevent hide operation                
                if (ContentHiding != null)
                    ContentHiding(c, cea);
            }
            
            // Was action cancelled?                        
            return cea.Cancel;
        }

		public virtual void OnContentHidden(Content c)
        {
            if (_surpressVisibleEvents == 0)
            {
                // Notify operation has completed
                if (ContentHidden != null)
                    ContentHidden(c, EventArgs.Empty);
            }
        }

		public virtual void OnContentShown(Content c)
        {
            if (_surpressVisibleEvents == 0)
            {
                // Notify operation has completed
                if (ContentShown != null)
                    ContentShown(c, EventArgs.Empty);
            }
        }

		public virtual void OnTabControlCreated(Magic.Controls.TabControl tabControl)
		{ 
			// Notify interested parties about creation of a new TabControl instance
			if (TabControlCreated != null)
				TabControlCreated(tabControl);
		}
		
		public virtual void OnSaveCustomConfig(XmlTextWriter xmlOut)
		{
            // Notify interested parties that they can add their own custom data
            if (SaveCustomConfig != null)
                SaveCustomConfig(xmlOut);
        }

        public virtual void OnLoadCustomConfig(XmlTextReader xmlIn)
        {
            // Notify interested parties that they can add their own custom data
            if (LoadCustomConfig != null)
                LoadCustomConfig(xmlIn);
        }
        
        protected virtual void OnContentsClearing()
        {
            _container.SuspendLayout();

            // Remove each Content from any WindowContent it is inside
            foreach(Content c in _contents)
            {
                // Is the Content inside a WindowContent?
                if (c.ParentWindowContent != null)
                    c.ParentWindowContent.Contents.Remove(c);
            }

            _container.ResumeLayout();
        }

        protected virtual void OnContentRemoved(int index, object value)
        {
            _container.SuspendLayout();

            Content c = value as Content;

            if (c != null)
            {
                // Is the Content inside a WindowContent?
                if (c.ParentWindowContent != null)
                    c.ParentWindowContent.Contents.Remove(c);
            }

            _container.ResumeLayout();
        }

        protected virtual void OnContentClose(object sender, EventArgs e)
        {
            WindowDetailCaption wdc = sender as WindowDetailCaption;
            
            // Was Close generated by a Caption detail?
            if (wdc != null)
            {
                WindowContentTabbed wct = wdc.ParentWindow as WindowContentTabbed;
                
                // Is the Caption part of a WindowContentTabbed object?
                if (wct != null)
                {
                    // Find the Content object that is the target
                    Content c = wct.CurrentContent;
                    
                    if (c != null)
                    {
                        // Was action cancelled?                        
                        if (!OnContentHiding(c))
                            wct.HideCurrentContent();
                    }
                }
            }
        }
        
        protected virtual void OnInvertAutoHide(object sender, EventArgs e)
        {
            // Do not generate hiding/hidden/shown events
            _surpressVisibleEvents++;
        
            WindowDetail detail = sender as WindowDetail;

            // Get access to Content that initiated AutoHide for its Window
            WindowContent wc = detail.ParentWindow as WindowContent;
                        
            // Create a collection of the Content in the same window
            ContentCollection cc = new ContentCollection();
            
            // Add all Content into collection
            foreach(Content c in wc.Contents)
                cc.Add(c);

            // Add to the correct AutoHidePanel
            AutoHideContents(cc, wc.State);

            // Enable generate hiding/hidden/shown events
            _surpressVisibleEvents--;
        }
        
        internal AutoHidePanel AutoHidePanelForState(State state)
        {
            AutoHidePanel ahp = null;

            // Grab the correct hosting panel
            switch(state)
            {
                case State.DockLeft:
                    ahp = _ahpLeft;
                    break;
                case State.DockRight:
                    ahp = _ahpRight;
                    break;
                case State.DockTop:
                    ahp = _ahpTop;
                    break;
                case State.DockBottom:
                    ahp = _ahpBottom;
                    break;
            }

            return ahp;
        }
        
        internal void AutoHideContents(ContentCollection cc, State state)
        {
            // Hide all the Content instances. This will cause the restore objects to be 
            // created and so remember the docking positions for when they are restored
            foreach(Content c in cc)
                HideContent(c);

            AutoHidePanel ahp = AutoHidePanelForState(state);

            // Pass management of Contents into the panel            
            ahp.AddContentsAsGroup(cc);
        }

        internal AutoHidePanel AutoHidePanelForContent(Content c)
        {
            if (_ahpLeft.ContainsContent(c))
                return _ahpLeft;     

            if (_ahpRight.ContainsContent(c))
                return _ahpRight;     

            if (_ahpTop.ContainsContent(c))
                return _ahpTop;     

            if (_ahpBottom.ContainsContent(c))
                return _ahpBottom;     
                
            return null;
        }

        internal int SurpressVisibleEvents
        {
            get { return _surpressVisibleEvents; }
            set { _surpressVisibleEvents = value; }
        }

        protected void AddAutoHidePanels()
        {
            // Create an instance for each container edge (they default to being hidden)
            _ahpTop = new AutoHidePanel(this, DockStyle.Top);
            _ahpLeft = new AutoHidePanel(this, DockStyle.Left);
            _ahpBottom = new AutoHidePanel(this, DockStyle.Bottom);
            _ahpRight = new AutoHidePanel(this, DockStyle.Right);
        
			_ahpTop.Name = "Top";
			_ahpLeft.Name = "Left";
			_ahpBottom.Name = "Bottom";
			_ahpRight.Name = "Right";
		    
            // Add to the end of the container we manage
            _container.Controls.AddRange(new Control[]{_ahpBottom, _ahpTop, _ahpRight, _ahpLeft});
		}
		            
        protected void RepositionControlBefore(Control target, Control source)
        {
            // Find indexs of the two controls
            int targetPos = _container.Controls.IndexOf(target);
            int sourcePos = _container.Controls.IndexOf(source);

            // If the source is being moved further up the list then we must decrement the target index 
            // as the move is carried out in two phases. First the source control is removed from the 
            // collection and then added at the given requested index. So when insertion point needs 
            // ahjusting to reflec the fact the control has been removed before being inserted.
            if (targetPos >= sourcePos)
                targetPos--;

            _container.Controls.SetChildIndex(source, targetPos);			
        }

        protected virtual void OnRestore(object sender, EventArgs e)
        {
            WindowDetailCaption wdc = sender as WindowDetailCaption;

			// Was Restore generated by a Caption detail?
			if (wdc != null)
			{
				RemoveAnyFillStyle();

                WindowContent wc = wdc.ParentWindow as WindowContent;

				// Is the Caption part of a WindowContent object?
				if (wc != null)
				{
					ContentCollection copy = new ContentCollection();

					// Make every Content of the WindowContent record its
					// current position and remember it for when the future
					foreach(Content c in wc.Contents)
					{
						c.RecordRestore();

						// Invert docked status
						c.Docked = (c.Docked == false);

						copy.Add(c);
					}

					int copyCount = copy.Count;

					// Must have at least one!
					if (copyCount >= 1)
					{
						// Remove from current WindowContent and restore its position
						HideContent(copy[0], false, true);
						ShowContent(copy[0]);

						// Any other content to be moved along with it?
						if (copyCount >= 2)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区的| 伊人色综合久久天天人手人婷| 久久久久久久电影| 日韩毛片高清在线播放| 日日夜夜一区二区| 99久久er热在这里只有精品66| 在线播放视频一区| 亚洲青青青在线视频| 国产精品综合一区二区| 欧美精品1区2区| 国产精品久久久久久妇女6080| 奇米色一区二区| 色系网站成人免费| 中文成人综合网| 精品一区中文字幕| 日韩一区二区精品| 日韩在线a电影| 欧美日韩在线综合| 亚洲欧美乱综合| www.成人网.com| 亚洲国产成人私人影院tom| 蜜臀av性久久久久蜜臀av麻豆| 欧美亚洲动漫另类| 亚洲欧美电影院| 99re热这里只有精品免费视频| 久久久99久久| 高清视频一区二区| 欧美激情一区三区| 国产精品主播直播| 精品国产免费久久 | 欧美一区二区三区视频免费| 亚洲综合小说图片| 91久久精品一区二区三| 亚洲欧美日韩国产综合在线| 99精品久久只有精品| 亚洲欧洲美洲综合色网| 成人午夜精品在线| 亚洲欧洲www| 91视频91自| 亚洲一卡二卡三卡四卡无卡久久 | 欧美亚洲国产一区在线观看网站| 国产精品女主播av| 色久优优欧美色久优优| 亚洲综合清纯丝袜自拍| 欧美另类高清zo欧美| 蜜桃视频第一区免费观看| 日韩无一区二区| 国产一区二区不卡老阿姨| 久久精品视频免费| 99精品久久久久久| 爽爽淫人综合网网站| 精品日韩在线一区| voyeur盗摄精品| 亚洲午夜在线视频| 欧美变态口味重另类| 成人精品高清在线| 一级中文字幕一区二区| 91精品国产入口| 国产精品18久久久久久vr| 亚洲欧美在线视频观看| 欧美精品18+| 欧美aaaaa成人免费观看视频| 26uuu亚洲综合色欧美| 99久久久国产精品免费蜜臀| 亚洲18色成人| 国产肉丝袜一区二区| 色久综合一二码| 精品在线亚洲视频| 亚洲人成人一区二区在线观看| 制服丝袜亚洲色图| 国产91在线观看丝袜| 亚洲成人av电影| 国产女人18水真多18精品一级做| 欧美伊人精品成人久久综合97 | 亚洲午夜精品在线| 久久综合九色综合久久久精品综合| eeuss鲁片一区二区三区在线观看| 亚洲一区二区在线免费观看视频| 精品国产sm最大网站| 91久久香蕉国产日韩欧美9色| 国产自产视频一区二区三区| 亚洲激情网站免费观看| 久久久久国产精品厨房| 欧美日韩国产精品自在自线| 波多野洁衣一区| 久久国产综合精品| 午夜婷婷国产麻豆精品| 最新热久久免费视频| 欧美变态tickle挠乳网站| 在线中文字幕一区二区| 东方aⅴ免费观看久久av| 蜜臀av性久久久久蜜臀av麻豆| 亚洲乱码一区二区三区在线观看| 久久蜜臀精品av| 日韩欧美一二区| 欧美日韩一区二区在线观看视频| 成人福利视频网站| 国产乱人伦偷精品视频免下载| 天天色天天爱天天射综合| 亚洲欧美偷拍卡通变态| 中文字幕不卡在线播放| 精品国产sm最大网站| 日韩精品一区二区三区视频播放 | 国产一区二区成人久久免费影院| 日韩精品视频网站| 亚洲成a人v欧美综合天堂下载| 18欧美亚洲精品| 成人欧美一区二区三区黑人麻豆 | 日韩免费电影网站| 欧美日韩国产成人在线免费| 91香蕉视频污在线| 91在线视频网址| 91网址在线看| 91麻豆国产精品久久| 99r精品视频| 色婷婷综合久久| 欧美性大战xxxxx久久久| 欧美性做爰猛烈叫床潮| 欧美自拍偷拍午夜视频| 欧美视频自拍偷拍| 欧美日韩精品电影| 日韩一区二区三区三四区视频在线观看| 色婷婷狠狠综合| 欧美美女喷水视频| 91精品国产综合久久精品性色| 欧美男人的天堂一二区| 日韩一级免费观看| 日韩女优制服丝袜电影| 精品99一区二区| 国产精品系列在线| 亚洲欧美日韩电影| 日日嗨av一区二区三区四区| 免费看欧美女人艹b| 国产精品一区一区三区| 播五月开心婷婷综合| 色乱码一区二区三区88| 欧美日韩国产另类一区| 欧美va亚洲va| 国产精品三级在线观看| 一区二区三区四区激情| 免费观看久久久4p| 成人午夜短视频| 欧美日韩一区久久| 久久久久久久久久久久久夜| 亚洲视频小说图片| 视频一区免费在线观看| 国产精品一级片| 日本精品裸体写真集在线观看| 欧美日韩精品一区二区| 国产日韩精品一区| 亚洲高清不卡在线观看| 国产一区二区三区香蕉| 91美女精品福利| 久久众筹精品私拍模特| 一区二区三区高清不卡| 精品无人码麻豆乱码1区2区 | 亚洲香肠在线观看| 国产在线视频不卡二| 色婷婷久久久亚洲一区二区三区| 538prom精品视频线放| 中文字幕不卡的av| 五月婷婷综合网| www.亚洲在线| 久久人人超碰精品| 亚洲午夜国产一区99re久久| 国产激情91久久精品导航| 欧美性猛交xxxx黑人交| 欧美国产精品一区二区| 精品影院一区二区久久久| 欧美调教femdomvk| 国产精品久久精品日日| 久久成人av少妇免费| 欧美日本乱大交xxxxx| 国产精品免费丝袜| 国产一区欧美日韩| 欧美三级电影网站| 亚洲精品你懂的| 国产98色在线|日韩| 精品福利一区二区三区| 图片区小说区区亚洲影院| 在线欧美小视频| 国产精品二三区| 国产成人h网站| 久久精品视频免费| 紧缚捆绑精品一区二区| 91精品在线麻豆| 亚洲小说欧美激情另类| 在线观看成人小视频| 一区二区三区日韩在线观看| av不卡在线播放| 国产精品久久夜| 粗大黑人巨茎大战欧美成人| 久久免费的精品国产v∧| 韩国女主播一区| 久久美女艺术照精彩视频福利播放| 日本成人在线不卡视频| 欧美丰满少妇xxxbbb| 日本在线不卡视频| 日韩欧美中文字幕公布| 精品一区二区三区的国产在线播放 |