示例#1
0
 public PartDiamond()
 {
     DiamondMeasurement = new DiamondMeasurement();
     DiamondShape       = new DiamondShape();
     Part = new Part();
     SetDefaults();
 }
示例#2
0
        public double DiamondWeightEstimator(DiamondShape diamondShape, DiamondMeasurement dm)
        {
            DiamondCalculations.CalculateWeight dc = new DiamondCalculations.CalculateWeight();

            var weight = dc.CalculateDiamondWeight(diamondShape.ShapeName, dm);

            return((double)weight);
        }