예제 #1
0
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            double val = System.Convert.ToDouble(value);

            return(PylonFloatSlider.PercentToSliderValue(val));
        }
예제 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            int s = System.Convert.ToInt32(value);

            return(PylonFloatSlider.SliderToPercentValue(s));
        }