示例#1
0
 public bool IsDockStateValid(DockState dockState)
 {
     if (((this.DockPanel != null) && (dockState == DockState.Document)) &&
         (this.DockPanel.DocumentStyle == DocumentStyle.SystemMdi))
     {
         return(false);
     }
     return(DockHelper.IsDockStateValid(dockState, this.DockAreas));
 }
示例#2
0
 internal bool IsDockStateValid(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);
 }