private void RecalcString() { dontParse = true; viewModel.PointString = string.Format("{0},{1},{2}", DrawingSettings.FormatUnits(Point.X, UnitFormat, UnitPrecision), DrawingSettings.FormatUnits(Point.Y, UnitFormat, UnitPrecision), DrawingSettings.FormatUnits(Point.Z, UnitFormat, UnitPrecision)); dontParse = false; }
private void TestArch(double value, string expected, int precision) { Assert.Equal(expected, DrawingSettings.FormatUnits(value, UnitFormat.Architectural, precision)); }
private void TestMetric(double value, string expected, int precision) { Assert.Equal(expected, DrawingSettings.FormatUnits(value, UnitFormat.Metric, precision)); }
private string Format(DrawingSettings settings, double value) { return(DrawingSettings.FormatUnits(value, settings.UnitFormat, settings.UnitPrecision)); }