示例#1
0
        private void SetButtons()
        {
            ButtonClose.Enabled    = CloseButtonEnabled;
            ButtonClose.Visible    = CloseButtonVisible;
            ButtonAutoHide.Visible = ShouldShowAutoHideButton;
            ButtonOptions.Visible  = HasTabPageContextMenu;
            ButtonClose.RefreshChanges();
            ButtonAutoHide.RefreshChanges();
            ButtonOptions.RefreshChanges();

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

            SetButtonsPosition();
        }