Example #1
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val)
 {
     _unit       = unit;
     _type       = type;
     _val        = val;
     _additional = null;
 }
Example #2
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val, string additional)
 {
     _unit       = unit;
     _type       = type;
     _val        = val;
     _additional = additional;
     if (_additional.Length > 20)
     {
         _additional = _additional.Substring(0, 17) + "...";
     }
 }
Example #3
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val, string additional) :
     this(type, unit, (long)Math.Floor(val), additional)
 {
 }
Example #4
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val, string additional)
     : this(type, unit, (decimal)val, additional)
 {
 }
Example #5
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val) :
     this(type, unit, (long)Math.Floor(val))
 {
 }
Example #6
0
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val)
     : this(type, unit, (decimal)val)
 {
 }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val, string additional):
     this(type,unit,(long)Math.Floor(val),additional)
 { }
 internal MetricUnitAttribute(MetricUnits metricUnits)
 {
     MetricUnits = metricUnits;
 }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val,string additional)
     : this(type, unit, (decimal)val,additional) { }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val,string additional)
 {
     _unit = unit;
     _type = type;
     _val = val;
     _additional = additional;
     if (_additional.Length > 20)
         _additional = _additional.Substring(0, 17) + "...";
 }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val) :
     this(type,unit,(long)Math.Floor(val))
 {
 }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val)
     : this(type, unit, (decimal)val) { }
 public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val)
 {
     _unit = unit;
     _type = type;
     _val = val;
     _additional = null;
 }