From 5655347152e864699378a995a0ab374213ad54c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 19 Jun 2011 12:51:17 +0000 Subject: [PATCH] Fixed issue 239. --- GUI/MainForm.Designer.cs | 16 ++++++++-------- GUI/MainForm.cs | 14 +++++++------- GUI/UnitManager.cs | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/GUI/MainForm.Designer.cs b/GUI/MainForm.Designer.cs index c34d2dc..bd1334d 100644 --- a/GUI/MainForm.Designer.cs +++ b/GUI/MainForm.Designer.cs @@ -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): @@ -98,7 +98,7 @@ namespace OpenHardwareMonitor.GUI { this.startupMenuItem = new System.Windows.Forms.MenuItem(); this.separatorMenuItem = new System.Windows.Forms.MenuItem(); this.temperatureUnitsMenuItem = new System.Windows.Forms.MenuItem(); - this.celciusMenuItem = new System.Windows.Forms.MenuItem(); + this.celsiusMenuItem = new System.Windows.Forms.MenuItem(); this.fahrenheitMenuItem = new System.Windows.Forms.MenuItem(); this.MenuItem4 = new System.Windows.Forms.MenuItem(); this.hddMenuItem = new System.Windows.Forms.MenuItem(); @@ -364,15 +364,15 @@ namespace OpenHardwareMonitor.GUI { // this.temperatureUnitsMenuItem.Index = 5; this.temperatureUnitsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.celciusMenuItem, + this.celsiusMenuItem, this.fahrenheitMenuItem}); this.temperatureUnitsMenuItem.Text = "Temperature Unit"; // - // celciusMenuItem + // celsiusMenuItem // - this.celciusMenuItem.Index = 0; - this.celciusMenuItem.Text = "Celcius"; - this.celciusMenuItem.Click += new System.EventHandler(this.celciusMenuItem_Click); + this.celsiusMenuItem.Index = 0; + this.celsiusMenuItem.Text = "Celsius"; + this.celsiusMenuItem.Click += new System.EventHandler(this.celsiusMenuItem_Click); // // fahrenheitMenuItem // @@ -566,7 +566,7 @@ namespace OpenHardwareMonitor.GUI { private System.Windows.Forms.MenuItem maxMenuItem; private System.Windows.Forms.MenuItem temperatureUnitsMenuItem; private System.Windows.Forms.MenuItem MenuItem4; - private System.Windows.Forms.MenuItem celciusMenuItem; + private System.Windows.Forms.MenuItem celsiusMenuItem; private System.Windows.Forms.MenuItem fahrenheitMenuItem; private System.Windows.Forms.MenuItem sumbitReportMenuItem; private System.Windows.Forms.MenuItem MenuItem2; diff --git a/GUI/MainForm.cs b/GUI/MainForm.cs index 8c32bcf..67057da 100644 --- a/GUI/MainForm.cs +++ b/GUI/MainForm.cs @@ -235,9 +235,9 @@ namespace OpenHardwareMonitor.GUI { gadget.Visible = showGadget.Value; }; - celciusMenuItem.Checked = - unitManager.TemperatureUnit == TemperatureUnit.Celcius; - fahrenheitMenuItem.Checked = !celciusMenuItem.Checked; + celsiusMenuItem.Checked = + unitManager.TemperatureUnit == TemperatureUnit.Celsius; + fahrenheitMenuItem.Checked = !celsiusMenuItem.Checked; InitializePlotForm(); @@ -689,14 +689,14 @@ namespace OpenHardwareMonitor.GUI { } } - private void celciusMenuItem_Click(object sender, EventArgs e) { - celciusMenuItem.Checked = true; + private void celsiusMenuItem_Click(object sender, EventArgs e) { + celsiusMenuItem.Checked = true; fahrenheitMenuItem.Checked = false; - unitManager.TemperatureUnit = TemperatureUnit.Celcius; + unitManager.TemperatureUnit = TemperatureUnit.Celsius; } private void fahrenheitMenuItem_Click(object sender, EventArgs e) { - celciusMenuItem.Checked = false; + celsiusMenuItem.Checked = false; fahrenheitMenuItem.Checked = true; unitManager.TemperatureUnit = TemperatureUnit.Fahrenheit; } diff --git a/GUI/UnitManager.cs b/GUI/UnitManager.cs index 54956c8..7a6b0cb 100644 --- a/GUI/UnitManager.cs +++ b/GUI/UnitManager.cs @@ -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): @@ -41,7 +41,7 @@ using System.Collections.Generic; namespace OpenHardwareMonitor.GUI { public enum TemperatureUnit { - Celcius = 0, + Celsius = 0, Fahrenheit = 1 } @@ -53,7 +53,7 @@ namespace OpenHardwareMonitor.GUI { public UnitManager(PersistentSettings settings) { this.settings = settings; this.temperatureUnit = (TemperatureUnit)settings.GetValue("TemperatureUnit", - (int)TemperatureUnit.Celcius); + (int)TemperatureUnit.Celsius); } public TemperatureUnit TemperatureUnit {