Example #1
0
 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);
 }
Example #2
0
 internal DockWindow(UPlan.Frame.DockForm.DockPanel dockPanel, UPlan.Frame.DockForm.DockState dockState)
 {
     this.m_nestedPanes = new NestedPaneCollection(this);
     this.m_dockPanel   = dockPanel;
     this.m_dockState   = dockState;
     base.Visible       = false;
     base.SuspendLayout();
     if ((((this.DockState == UPlan.Frame.DockForm.DockState.DockLeft) || (this.DockState == UPlan.Frame.DockForm.DockState.DockRight)) || (this.DockState == UPlan.Frame.DockForm.DockState.DockTop)) || (this.DockState == UPlan.Frame.DockForm.DockState.DockBottom))
     {
         this.m_splitter = new SplitterControl();
         base.Controls.Add(this.m_splitter);
     }
     if (this.DockState == UPlan.Frame.DockForm.DockState.DockLeft)
     {
         this.Dock            = DockStyle.Left;
         this.m_splitter.Dock = DockStyle.Right;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockRight)
     {
         this.Dock            = DockStyle.Right;
         this.m_splitter.Dock = DockStyle.Left;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockTop)
     {
         this.Dock            = DockStyle.Top;
         this.m_splitter.Dock = DockStyle.Bottom;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.DockBottom)
     {
         this.Dock            = DockStyle.Bottom;
         this.m_splitter.Dock = DockStyle.Top;
     }
     else if (this.DockState == UPlan.Frame.DockForm.DockState.Document)
     {
         this.Dock = DockStyle.Fill;
     }
     base.ResumeLayout();
 }
Example #3
0
 public AutoHideState(UPlan.Frame.DockForm.DockState dockState)
 {
     this.m_dockState = dockState;
 }
Example #4
0
 public bool IsDockStateValid(UPlan.Frame.DockForm.DockState dockState)
 {
     return(this.DockHandler.IsDockStateValid(dockState));
 }
Example #5
0
 public void Show(UPlan.Frame.DockForm.DockPanel dockPanel, UPlan.Frame.DockForm.DockState dockState)
 {
     this.DockHandler.Show(dockPanel, dockState);
 }
Example #6
0
 bool IDockDragSource.IsDockStateValid(UPlan.Frame.DockForm.DockState dockState)
 {
     return(this.IsDockStateValid(dockState));
 }