Flood.GUI.Controls.DockBase.OnRedundantChildDock C# (CSharp) Method

OnRedundantChildDock() protected method

protected OnRedundantChildDock ( DockBase dock ) : void
dock DockBase
return void
        protected virtual void OnRedundantChildDock(DockBase dock)
        {
            dock.IsHidden = true;
            DoRedundancyCheck();
            DoConsolidateCheck();
        }

Usage Example

示例#1
0
        protected virtual void DoRedundancyCheck()
        {
            if (!IsEmpty)
            {
                return;
            }

            DockBase pDockParent = Parent as DockBase;

            if (null == pDockParent)
            {
                return;
            }

            pDockParent.OnRedundantChildDock(this);
        }