GUI/SensorNotifyIcon.cs
changeset 317 1ccf99e620a9
parent 282 a2793a38aac0
child 324 c6ee430d6995
     1.1 --- a/GUI/SensorNotifyIcon.cs	Mon Jul 25 21:09:21 2011 +0000
     1.2 +++ b/GUI/SensorNotifyIcon.cs	Wed Jul 27 18:27:16 2011 +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-2010
     1.8 +  Portions created by the Initial Developer are Copyright (C) 2009-2011
     1.9    the Initial Developer. All Rights Reserved.
    1.10  
    1.11    Contributor(s):
    1.12 @@ -196,6 +196,8 @@
    1.13            return string.Format("{0:F0}", sensor.Value);
    1.14          case SensorType.Level:
    1.15            return string.Format("{0:F0}", sensor.Value);
    1.16 +        case SensorType.Power:
    1.17 +          return string.Format("{0:F0}", sensor.Value);
    1.18        }
    1.19        return "-";
    1.20      }
    1.21 @@ -283,6 +285,7 @@
    1.22          case SensorType.Flow: format = "\n{0}: {1:F0} L/h"; break;
    1.23          case SensorType.Control: format = "\n{0}: {1:F1} %"; break;
    1.24          case SensorType.Level: format = "\n{0}: {1:F1} %"; break;
    1.25 +        case SensorType.Power: format = "\n{0}: {1:F0} W"; break;
    1.26        }
    1.27        string formattedValue = string.Format(format, sensor.Name, sensor.Value);
    1.28        string hardwareName = sensor.Hardware.Name;