Esempio n. 1
0
 /// <summary>
 /// returns formatted total quantity for waste-water
 /// </summary>
 public static string FormatTotal(this PollutantTransfers.PollutantTransferRow row)
 {
     return(QuantityFormat.Format(row.Quantity, row.Unit));
 }
Esempio n. 2
0
 /// <summary>
 /// Formats a quantity
 /// </summary>
 /// <param name="amount">The quantity</param>
 /// <param name="unitCode">The unit of the quantity></param>
 ///<param name="conf">if true a null value will be marked confidential</param>
 public static string Format(double?amount, string unitCode, bool conf)
 {
     return(Format(amount, QuantityFormat.parseUnit(unitCode), conf));
 }