Example #1
0
        /// <summary>
        /// Updates the color panels and the hex value.
        /// </summary>
        /// <param name="updateSlider">A boolean value indicating whether or
        /// not the color slider should be updated.</param>
        /// <param name="resetPreviouslyPickedPointOnColorField">A boolean
        /// value indicating whether or not the previously picked point on the
        /// color field should be reset.</param>
        /// <param name="updateHexValue">A boolean value indicating whether or
        /// not the hex value should be updated.</param>

        private void UpdateColorPanels(bool updateSlider, bool resetPreviouslyPickedPointOnColorField, bool updateHexValue)
        {
            picCurrentColor.BackColor = rgbColorSpace.GetColor();

            if (updateSlider)
            {
                this.UpdateColorSlider();
            }

            this.UpdateColorField(resetPreviouslyPickedPointOnColorField);

            if (updateHexValue)
            {
                this.UpdateHexValue();
            }
        }