public double GetCurrentMeasureValue(Aquarium aquarium, string field) { QDecimal measure = QueryLastMeasure(aquarium, field); double mVal = (measure != null) ? measure.value : double.NaN; return(mVal); }
private double PrepareValue(Aquarium aquarium, IList <MeasureValue> measures, string field, string sign, string uom, ValueRange[] ranges) { if (aquarium == null) { return(double.NaN); } QDecimal measure = QueryLastMeasure(aquarium, field); double mVal = (measure != null) ? measure.value : double.NaN; PrepareValue(measures, mVal, sign, uom, ranges); return(mVal); }