private void SetParent()
{
if (this.DockState == DockState.Unknown || this.DockState == DockState.Hidden)
{
this.SetParent(null);
this.Splitter.Parent = null;
}
else if (this.DockState == DockState.Float)
{
this.SetParent(this.FloatWindow);
this.Splitter.Parent = this.FloatWindow;
}
else if (DockHelper.IsDockStateAutoHide(this.DockState))
{
this.SetParent(this.DockPanel.AutoHideControl);
this.Splitter.Parent = null;
}
else
{
this.SetParent(this.DockPanel.DockWindows[this.DockState]);
this.Splitter.Parent = Parent;
}
}