protected override double FromSliderValueY(int sliderValue) { if (this.useExponentialScale) { return(PropertyControlUtil.FromSliderValueExp(sliderValue, base.Property.MinValueY, base.Property.MaxValueY, this.DecimalPlaces)); } double num = Math.Pow(10.0, (double)-this.DecimalPlaces); return(sliderValue * num); }
protected override double FromSliderValueY(int sliderValue) { if (this.useExponentialScale) { return(PropertyControlUtil.FromSliderValueExp(sliderValue, Property.MinValueY, Property.MaxValueY, DecimalPlaces)); } else { double fromIntScale = Math.Pow(10, -DecimalPlaces); double valueDouble = (double)sliderValue * fromIntScale; return(valueDouble); } }