/// <summary> /// Shows or hides the circular preview boxes. /// </summary> /// <param name="value">if set to <c>true</c> [value].</param> private void ShowCircularPreviewBoxes(bool value) { GlobalBooleanSettingsManager globalBooleanSettingsManager = new GlobalBooleanSettingsManager(); if (value) { kgbCircularColourPreviewPane.Visible = true; kgbPreviewPane.Visible = false; standardPictureboxesToolStripMenuItem.Checked = false; circularPictureboxesToolStripMenuItem.Checked = true; } else { kgbCircularColourPreviewPane.Visible = false; kgbPreviewPane.Visible = true; standardPictureboxesToolStripMenuItem.Checked = true; circularPictureboxesToolStripMenuItem.Checked = false; } _globalBooleanSettingsManager.SetUseCircularPictureBoxes(value); UseCircularPictureBoxes = _globalBooleanSettingsManager.GetUseCircularPictureBoxes(); _globalBooleanSettingsManager.SaveBooleanSettings(); }
/// <summary> /// Shows or hides the circular preview boxes. /// </summary> /// <param name="value">if set to <c>true</c> [value].</param> private void ShowCircularPreviewBoxes(bool value) { GlobalBooleanSettingsManager globalBooleanSettingsManager = new GlobalBooleanSettingsManager(); #region Old Code //pbxBaseColour.Visible = value; //pbxDarkColour.Visible = value; //pbxMiddleColour.Visible = value; //pbxLightColour.Visible = value; //pbxLightestColour.Visible = value; //pbxBorderColourPreview.Visible = value; //pbxAlternativeNormalTextColour.Visible = value; //pbxNormalTextColourPreview.Visible = value; //pbxDisabledTextColourPreview.Visible = value; //pbxFocusedTextColourPreview.Visible = value; //pbxPressedTextColourPreview.Visible = value; //pbxDisabledColourPreview.Visible = value; //pbxLinkNormalColourPreview.Visible = value; //pbxLinkHoverColourPreview.Visible = value; //pbxLinkVisitedColourPreview.Visible = value; //pbxCustomColourOnePreview.Visible = value; //pbxCustomColourTwoPreview.Visible = value; //pbxCustomColourThreePreview.Visible = value; //pbxCustomColourFourPreview.Visible = value; //pbxCustomColourFivePreview.Visible = value; //pbxCustomTextColourOnePreview.Visible = value; //pbxCustomTextColourTwoPreview.Visible = value; //pbxCustomTextColourThreePreview.Visible = value; //pbxCustomTextColourFourPreview.Visible = value; //pbxCustomTextColourFivePreview.Visible = value; //pbxMenuTextColourPreview.Visible = value; //pbxStatusTextColourPreview.Visible = value; #endregion if (value) { kgbCircularColourPreviewPane.Visible = true; kgbPreviewPane.Visible = false; standardToolStripMenuItem.Checked = false; circularToolStripMenuItem.Checked = true; } else { kgbCircularColourPreviewPane.Visible = false; kgbPreviewPane.Visible = true; standardToolStripMenuItem.Checked = true; circularToolStripMenuItem.Checked = false; } _globalBooleanSettingsManager.SetUseCircularPictureBoxes(value); UseCircularPictureBoxes = _globalBooleanSettingsManager.GetUseCircularPictureBoxes(); _globalBooleanSettingsManager.SaveBooleanSettings(); }