Example #1
0
 public bool IsDockStateValid(DockState dockState)
 {
     if (DockPanel != null && dockState == DockState.Document && DockPanel.DocumentStyle == DocumentStyle.SystemMdi)
     {
         return(false);
     }
     return(DockHelper.IsDockStateValid(dockState, DockAreas));
 }
Example #2
0
 internal bool IsDockStateValid(DockState dockState)
 {
     foreach (DockPane nestedPane in NestedPanes)
     {
         foreach (IDockContent content in nestedPane.Contents)
         {
             if (!DockHelper.IsDockStateValid(dockState, content.DockHandler.DockAreas))
             {
                 return(false);
             }
         }
     }
     return(true);
 }