ARCed.UI.DockContentHandler.SetPane C# (CSharp) Method

SetPane() private method

private SetPane ( DockPane pane ) : void
pane DockPane
return void
        private void SetPane(DockPane pane)
        {
            if (pane != null && pane.DockState == DockState.Document && this.DockPanel.DocumentStyle == DocumentStyle.DockingMdi)
            {
                if (this.Form.Parent is DockPane)
                    this.SetParent(null);
                if (this.Form.MdiParent != this.DockPanel.ParentForm)
                {
                    this.FlagClipWindow = true;
                    this.Form.MdiParent = this.DockPanel.ParentForm;
                }
            }
            else
            {
                this.FlagClipWindow = true;
                if (this.Form.MdiParent != null)
                    this.Form.MdiParent = null;
                if (this.Form.TopLevel)
                    this.Form.TopLevel = false;
                this.SetParent(pane);
            }
        }