예제 #1
0
        private void CalcValue(double delta)
        {
            double result = TempValue + delta * Maximum / ValueArea.ActualWidth;

            string temp = result.ToString("f" + FloatDigit.ToString("d"));

            TempValue = double.Parse(temp);
        }
예제 #2
0
        private void CalcValue(Point p)
        {
            double result = (p.X * Maximum) / ValueArea.ActualWidth;

            string temp = result.ToString("f" + FloatDigit.ToString("d"));

            TempValue = double.Parse(temp);
        }