private void SetInertButtons()
{
if (Appearance == DockPane.AppearanceStyle.ToolWindow)
{
if (this.m_buttonClose != null)
this.m_buttonClose.Left = -this.m_buttonClose.Width;
if (this.m_buttonWindowList != null)
this.m_buttonWindowList.Left = -this.m_buttonWindowList.Width;
}
else
{
this.ButtonClose.Enabled = DockPane.ActiveContent == null ? true : DockPane.ActiveContent.DockHandler.CloseButton;
this.m_closeButtonVisible = DockPane.ActiveContent == null ? true : DockPane.ActiveContent.DockHandler.CloseButtonVisible;
this.ButtonClose.Visible = this.m_closeButtonVisible;
this.ButtonClose.RefreshChanges();
this.ButtonWindowList.RefreshChanges();
}
}