private void UpdateTrackBarsAndTextBoxes()
        {
            valueChanging = true;

            // cast to float to fix double "precision lost" formatting.
            minTextBox.Text = ((float)value.Minimum).ToString();
            maxTextBox.Text = ((float)value.Maximum).ToString();

            minTrackBar.Value = rangeAttr.GetTrackBarValue(IsIntegerType(), value.Minimum);
            maxTrackBar.Value = rangeAttr.GetTrackBarValue(IsIntegerType(), value.Maximum);

            valueChanging = false;
        }
        void UpdateTrackBar()
        {
            var control  = (IHCTextBoxNumeric)CreatedControlInsidePropertyItemControl;
            var trackBar = control.TrackBar;

            var values = GetValues();

            if (values == null)
            {
                return;
            }

            int resultValue = 0;

            for (int nValue = 0; nValue < values.Length; nValue++)
            {
                var value      = values[nValue];
                var unrefValue = ReferenceUtility.GetUnreferencedValue(value);
                //conversion by means string
                double doubleValue = double.Parse(unrefValue.ToString());
                var    value2      = range.GetTrackBarValue(IsInteger(), doubleValue);

                if (nValue == 0)
                {
                    resultValue = value2;
                }
                else
                {
                    if (resultValue != value2)
                    {
                        resultValue = control.TrackBar.Minimum;
                    }
                }
            }

            if (trackBar.Value != resultValue)
            {
                trackBarDisableValueChangedEvent = true;
                trackBar.Value = resultValue;
                trackBarDisableValueChangedEvent = false;
            }
        }