# HG changeset patch # User moel.mich # Date 1308487877 0 # Node ID 072989c22a876ad8210739311f3a998ac089165c # Parent 96263190189a8222d1240a11d4a88fa1051ebf56 Fixed issue 239. diff -r 96263190189a -r 072989c22a87 GUI/MainForm.Designer.cs --- a/GUI/MainForm.Designer.cs Sun Jun 19 12:41:18 2011 +0000 +++ b/GUI/MainForm.Designer.cs Sun Jun 19 12:51:17 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): @@ -98,7 +98,7 @@ 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 @@ // 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 @@ 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 -r 96263190189a -r 072989c22a87 GUI/MainForm.cs --- a/GUI/MainForm.cs Sun Jun 19 12:41:18 2011 +0000 +++ b/GUI/MainForm.cs Sun Jun 19 12:51:17 2011 +0000 @@ -235,9 +235,9 @@ 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 @@ } } - 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 -r 96263190189a -r 072989c22a87 GUI/UnitManager.cs --- a/GUI/UnitManager.cs Sun Jun 19 12:41:18 2011 +0000 +++ b/GUI/UnitManager.cs Sun Jun 19 12:51:17 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): @@ -41,7 +41,7 @@ namespace OpenHardwareMonitor.GUI { public enum TemperatureUnit { - Celcius = 0, + Celsius = 0, Fahrenheit = 1 } @@ -53,7 +53,7 @@ public UnitManager(PersistentSettings settings) { this.settings = settings; this.temperatureUnit = (TemperatureUnit)settings.GetValue("TemperatureUnit", - (int)TemperatureUnit.Celcius); + (int)TemperatureUnit.Celsius); } public TemperatureUnit TemperatureUnit {