コード例 #1
0
ファイル: DockContent.cs プロジェクト: hakanaku2009/svn-dump
 public DockContent()
 {
     m_dockHandler = new DockContentHandler(this, new GetPersistStringCallback(GetPersistString));
     m_dockHandler.DockStateChanged += new EventHandler(DockHandler_DockStateChanged);
     //Suggested as a fix by bensty regarding form resize
     this.ParentChanged += new EventHandler(DockContent_ParentChanged);
 }
コード例 #2
0
            private void AddLastToActiveList(IDockContent content)
            {
                IDockContent last = LastActiveContent;

                if (last == content)
                {
                    return;
                }

                DockContentHandler handler = content.DockHandler;

                if (IsInActiveList(content))
                {
                    RemoveFromActiveList(content);
                }

                handler.PreviousActive = last;
                handler.NextActive     = null;
                LastActiveContent      = content;
                if (last != null)
                {
                    last.DockHandler.NextActive = LastActiveContent;
                }
            }
コード例 #3
0
ファイル: DockContent.cs プロジェクト: GodLesZ/svn-dump
		public DockContent() {
			m_dockHandler = new DockContentHandler(this, new GetPersistStringCallback(GetPersistString));
			m_dockHandler.DockStateChanged += new EventHandler(DockHandler_DockStateChanged);
			//Suggested as a fix by bensty regarding form resize
			this.ParentChanged += new EventHandler(DockContent_ParentChanged);
		}