GUI/HardwareNode.cs
changeset 340 600962f8a298
parent 327 e837e1e4b282
child 344 3145aadca3d2
     1.1 --- a/GUI/HardwareNode.cs	Mon Feb 13 21:56:29 2012 +0000
     1.2 +++ b/GUI/HardwareNode.cs	Tue Feb 14 23:07:55 2012 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  
     1.5    The Initial Developer of the Original Code is 
     1.6    Michael Möller <m.moeller@gmx.ch>.
     1.7 -  Portions created by the Initial Developer are Copyright (C) 2009-2011
     1.8 +  Portions created by the Initial Developer are Copyright (C) 2009-2012
     1.9    the Initial Developer. All Rights Reserved.
    1.10  
    1.11    Contributor(s):
    1.12 @@ -57,16 +57,8 @@
    1.13        this.hardware = hardware;
    1.14        this.Image = HardwareTypeImage.Instance.GetImage(hardware.HardwareType);
    1.15  
    1.16 -      typeNodes.Add(new TypeNode(SensorType.Voltage));
    1.17 -      typeNodes.Add(new TypeNode(SensorType.Clock));      
    1.18 -      typeNodes.Add(new TypeNode(SensorType.Temperature));
    1.19 -      typeNodes.Add(new TypeNode(SensorType.Load));
    1.20 -      typeNodes.Add(new TypeNode(SensorType.Fan));
    1.21 -      typeNodes.Add(new TypeNode(SensorType.Flow));
    1.22 -      typeNodes.Add(new TypeNode(SensorType.Control));
    1.23 -      typeNodes.Add(new TypeNode(SensorType.Level));
    1.24 -      typeNodes.Add(new TypeNode(SensorType.Power));
    1.25 -      typeNodes.Add(new TypeNode(SensorType.Data));
    1.26 +      foreach (SensorType sensorType in Enum.GetValues(typeof(SensorType)))
    1.27 +        typeNodes.Add(new TypeNode(sensorType));
    1.28  
    1.29        foreach (ISensor sensor in hardware.Sensors)
    1.30          SensorAdded(sensor);