Пример #1
0
		public bool IsDockStateValid(DockState dockState)
		{
			if (DockPanel != null && dockState == DockState.Document && DockPanel.DocumentStyle == DocumentStyle.SystemMdi)
				return false;
			else
				return DockHelper.IsDockStateValid(dockState, DockAreas);
		}
Пример #2
0
        internal bool IsDockStateValid(DockState dockState)
        {
            foreach (DockPane pane in NestedPanes)
            {
                foreach (IDockContent content in pane.Contents)
                {
                    if (!DockHelper.IsDockStateValid(dockState, content.DockHandler.DockAreas))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
Пример #3
0
        internal bool IsDockStateValid(DockState dockState)
        {
            bool result;

            foreach (DockPane current in this.NestedPanes)
            {
                foreach (IDockContent current2 in current.Contents)
                {
                    if (!DockHelper.IsDockStateValid(dockState, current2.DockHandler.DockAreas))
                    {
                        result = false;
                        return(result);
                    }
                }
            }
            result = true;
            return(result);
        }
Пример #4
0
 public bool IsDockStateValid(DockState dockState)
 {
     return((this.DockPanel == null || dockState != DockState.Document || this.DockPanel.DocumentStyle != DocumentStyle.SystemMdi) && DockHelper.IsDockStateValid(dockState, this.DockAreas));
 }