private void SetActivePane()
{
DockPane value = this.GetPaneFromHandle(NativeMethods.GetFocus());
if (this.m_activePane == value)
return;
if (this.m_activePane != null)
this.m_activePane.SetIsActivated(false);
this.m_activePane = value;
if (this.m_activePane != null)
this.m_activePane.SetIsActivated(true);
}