public bool IsDockStateValid(DockState dockState) { if (DockPanel != null && dockState == DockState.Document && DockPanel.DocumentStyle == DocumentStyle.SystemMdi) { return(false); } else { return(DockHelper.IsDockStateValid(dockState, DockAreas)); } }
internal bool IsDockStateValid(DockState dockState) { foreach (var pane in NestedPanes) { foreach (var content in pane.Contents) { if (!DockHelper.IsDockStateValid(dockState, content.DockHandler.DockAreas)) { return(false); } } } return(true); }