diff -r 82bfd8af42a7 -r 1ccf99e620a9 GUI/SensorNotifyIcon.cs --- a/GUI/SensorNotifyIcon.cs Mon Jul 25 21:09:21 2011 +0000 +++ b/GUI/SensorNotifyIcon.cs Wed Jul 27 18:27:16 2011 +0000 @@ -16,7 +16,7 @@ The Initial Developer of the Original Code is Michael Möller . - Portions created by the Initial Developer are Copyright (C) 2009-2010 + Portions created by the Initial Developer are Copyright (C) 2009-2011 the Initial Developer. All Rights Reserved. Contributor(s): @@ -196,6 +196,8 @@ return string.Format("{0:F0}", sensor.Value); case SensorType.Level: return string.Format("{0:F0}", sensor.Value); + case SensorType.Power: + return string.Format("{0:F0}", sensor.Value); } return "-"; } @@ -283,6 +285,7 @@ case SensorType.Flow: format = "\n{0}: {1:F0} L/h"; break; case SensorType.Control: format = "\n{0}: {1:F1} %"; break; case SensorType.Level: format = "\n{0}: {1:F1} %"; break; + case SensorType.Power: format = "\n{0}: {1:F0} W"; break; } string formattedValue = string.Format(format, sensor.Name, sensor.Value); string hardwareName = sensor.Hardware.Name;