public void UpdateDockWindowZOrder(DockStyle dockStyle, bool fullPanelEdge)
{
if (dockStyle == DockStyle.Left)
{
if (fullPanelEdge)
this.DockWindows[DockState.DockLeft].SendToBack();
else
this.DockWindows[DockState.DockLeft].BringToFront();
}
else if (dockStyle == DockStyle.Right)
{
if (fullPanelEdge)
this.DockWindows[DockState.DockRight].SendToBack();
else
this.DockWindows[DockState.DockRight].BringToFront();
}
else if (dockStyle == DockStyle.Top)
{
if (fullPanelEdge)
this.DockWindows[DockState.DockTop].SendToBack();
else
this.DockWindows[DockState.DockTop].BringToFront();
}
else if (dockStyle == DockStyle.Bottom)
{
if (fullPanelEdge)
this.DockWindows[DockState.DockBottom].SendToBack();
else
this.DockWindows[DockState.DockBottom].BringToFront();
}
}