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

SetVisible() private method

private SetVisible ( ) : void
return void
        internal void SetVisible()
        {
            bool visible;

            if (this.IsHidden)
                visible = false;
            else if (this.Pane != null && this.Pane.DockState == DockState.Document && this.DockPanel.DocumentStyle == DocumentStyle.DockingMdi)
                visible = true;
            else if (this.Pane != null && this.Pane.ActiveContent == this.Content)
                visible = true;
            else if (this.Pane != null && this.Pane.ActiveContent != this.Content)
                visible = false;
            else
                visible = this.Form.Visible;

            if (this.Form.Visible != visible)
                this.Form.Visible = visible;
        }