예제 #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);
 }
예제 #2
0
파일: UC_SingleCore.cs 프로젝트: ImtehQ/uuc
 public static double GetSetValue(int type, double value, string set)
 {
     if (type == 0) // or UnitTypes[type,1] == Metric
     {
         return(UCSC_Metric.ToSetValue(value, set));
     }
     if (type == 1) // or UnitTypes[type,1] == Imperial
     {
         return(UCSC_Imperial.ToSetValue(value, set));
     }
     if (type == 2) // or UnitTypes[type,1] == Bytes
     {
         return(UCSC_Bytes.ToSetValue(value, set));
     }
     return(-1);
 }