1.1 --- a/GUI/UnitManager.cs Wed Jul 11 22:28:39 2012 +0000
1.2 +++ b/GUI/UnitManager.cs Thu Jul 12 10:17:18 2012 +0000
1.3 @@ -4,7 +4,7 @@
1.4 License, v. 2.0. If a copy of the MPL was not distributed with this
1.5 file, You can obtain one at http://mozilla.org/MPL/2.0/.
1.6
1.7 - Copyright (C) 2009-2011 Michael Möller <mmoeller@openhardwaremonitor.org>
1.8 + Copyright (C) 2009-2012 Michael Möller <mmoeller@openhardwaremonitor.org>
1.9
1.10 */
1.11
1.12 @@ -36,5 +36,9 @@
1.13 this.settings.SetValue("TemperatureUnit", (int)temperatureUnit);
1.14 }
1.15 }
1.16 +
1.17 + public static float? CelsiusToFahrenheit(float? valueInCelsius) {
1.18 + return valueInCelsius * 1.8f + 32;
1.19 + }
1.20 }
1.21 }