internal bool IsDockStateValid(UPlan.Frame.DockForm.DockState dockState) { foreach (DockPane pane in this.NestedPanes) { foreach (IDockContent content in pane.Contents) { if (!DockHelper.IsDockStateValid(dockState, content.DockHandler.DockAreas)) { return(false); } } } return(true); }
public bool IsDockStateValid(DockState dockState) { return((this.DockPanel == null || dockState != DockState.Document || this.DockPanel.DocumentStyle != DocumentStyle.SystemMdi) && DockHelper.IsDockStateValid(dockState, this.DockAreas)); }