Hardware/Computer.cs
changeset 63 1a7c13ac7348
parent 47 1d02fde1bb23
child 64 15181001ee61
     1.1 --- a/Hardware/Computer.cs	Tue Feb 23 19:45:40 2010 +0000
     1.2 +++ b/Hardware/Computer.cs	Sat Feb 27 15:55:17 2010 +0000
     1.3 @@ -152,9 +152,15 @@
     1.4                new object[] { hardware.Name, hardware.Identifier });
     1.5              foreach (ISensor sensor in hardware.Sensors) {
     1.6                w.WriteLine("|   +- {0} : {1} : {2} : {3}",
     1.7 -                new object[] { sensor.SensorType, sensor.Index, sensor.Name, 
     1.8 -                  string.Format(CultureInfo.InvariantCulture, "{0}", 
     1.9 -                  sensor.Value) });
    1.10 +                sensor.SensorType, sensor.Index, sensor.Name, 
    1.11 +                  string.Format(CultureInfo.InvariantCulture, "{0} : {1} : {2}", 
    1.12 +                  sensor.Value, sensor.Min, sensor.Max) );
    1.13 +              foreach (IParameter parameter in sensor.Parameters) {
    1.14 +                w.WriteLine("|      +- {0} : {1} : {2}",
    1.15 +                  parameter.Name, parameter.IsDefault,   
    1.16 +                  string.Format(CultureInfo.InvariantCulture, "{0} : {1}", 
    1.17 +                    parameter.DefaultValue, parameter.Value) );
    1.18 +              }
    1.19              }
    1.20            }
    1.21          }