Example #1
0
 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;
 }
Example #2
0
 private void TestArch(double value, string expected, int precision)
 {
     Assert.Equal(expected, DrawingSettings.FormatUnits(value, UnitFormat.Architectural, precision));
 }
Example #3
0
 private void TestMetric(double value, string expected, int precision)
 {
     Assert.Equal(expected, DrawingSettings.FormatUnits(value, UnitFormat.Metric, precision));
 }
Example #4
0
 private string Format(DrawingSettings settings, double value)
 {
     return(DrawingSettings.FormatUnits(value, settings.UnitFormat, settings.UnitPrecision));
 }