public string OCUnitsToString(OCSampleUnitsEnum Units) { if (Units == OCSampleUnitsEnum.WalkleyBlack) { return("Walkley Black %"); } return("Total %"); }
/// <summary>Ocs the units set.</summary> /// <param name="ToUnits">To units.</param> public void OCUnitsSet(OCSampleUnitsEnum ToUnits) { if (ToUnits != OCUnits) { // convert the numbers if (ToUnits == OCSampleUnitsEnum.WalkleyBlack) { OC = OCWalkleyBlack; } else { OC = OCTotal; } OCUnits = ToUnits; } }
public void OCUnitsSet(OCSampleUnitsEnum ToUnits) { if (ToUnits != OCUnits && OC != null) { // convert the numbers if (ToUnits == OCSampleUnitsEnum.WalkleyBlack) { OC = MathUtility.Divide_Value(OC, 1.3); } else { OC = MathUtility.Multiply_Value(OC, 1.3); } } OCUnits = ToUnits; }
/// <summary>Ocs the units set.</summary> /// <param name="ToUnits">To units.</param> public void OCUnitsSet(OCSampleUnitsEnum ToUnits) { if (ToUnits != OCUnits) { // convert the numbers if (ToUnits == OCSampleUnitsEnum.WalkleyBlack) OC = OCWalkleyBlack; else OC = OCTotal; OCUnits = ToUnits; } }