コード例 #1
0
ファイル: DockPane.cs プロジェクト: luochunchun/dockbrowser
        private void RefreshChanges(bool performLayout)
        {
            if (IsDisposed)
            {
                return;
            }
            if (CaptionControl != null)
            {
                CaptionControl.RefreshChanges();
            }
            TabStripControl.RefreshChanges();
            if (DockState == DockState.Float && FloatWindow != null)
            {
                FloatWindow.RefreshChanges();
            }
            if (DockHelper.IsDockStateAutoHide(DockState) && DockPanel != null)
            {
                DockPanel.RefreshAutoHideStrip();
                DockPanel.PerformLayout();
            }

            if (performLayout)
            {
                PerformLayout();
            }
        }
コード例 #2
0
        private void RefreshChanges(bool bPerformLayout)
        {
            CaptionControl.RefreshChanges();
            TabStripControl.RefreshChanges();
            if (DockState == DockState.Float)
            {
                FloatWindow.RefreshChanges();
            }
            if (DockHelper.IsDockStateAutoHide(DockState) && DockPanel != null)
            {
                DockPanel.RefreshAutoHideStrip();
                DockPanel.PerformLayout();
            }

            if (bPerformLayout)
            {
                PerformLayout();
            }
        }