Beispiel #1
0
 public static double GetBaseValue(int type, double value, string set)
 {
     if (type == 0) // or UnitTypes[type,1] == Bytes
     {
         return(UCSC_Bytes.ToBaseValue(value, set));
     }
     return(-1);
 }
Beispiel #2
0
 public static double GetBaseValue(int type, double value, string set)
 {
     if (type == 0) // or UnitTypes[type,1] == Metric
     {
         return(UCSC_Metric.ToBaseValue(value, set));
     }
     if (type == 1) // or UnitTypes[type,1] == Imperial
     {
         return(UCSC_Imperial.ToBaseValue(value, set));
     }
     if (type == 2) // or UnitTypes[type,1] == Bytes
     {
         return(UCSC_Bytes.ToBaseValue(value, set));
     }
     return(-1);
 }