private void CalcValue(double delta) { double result = TempValue + delta * Maximum / ValueArea.ActualWidth; string temp = result.ToString("f" + FloatDigit.ToString("d")); TempValue = double.Parse(temp); }
private void CalcValue(Point p) { double result = (p.X * Maximum) / ValueArea.ActualWidth; string temp = result.ToString("f" + FloatDigit.ToString("d")); TempValue = double.Parse(temp); }