private void SetButtons()
{
this.ButtonClose.Enabled = this.CloseButtonEnabled;
this.ButtonClose.Visible = this.CloseButtonVisible;
this.ButtonAutoHide.Visible = this.ShouldShowAutoHideButton;
this.ButtonOptions.Visible = HasTabPageContextMenu;
this.ButtonClose.RefreshChanges();
this.ButtonAutoHide.RefreshChanges();
this.ButtonOptions.RefreshChanges();
this.SetButtonsPosition();
}