Fixed issue 239.
1.1 --- a/GUI/MainForm.Designer.cs Sun Jun 19 12:41:18 2011 +0000
1.2 +++ b/GUI/MainForm.Designer.cs Sun Jun 19 12:51:17 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 @@ -98,7 +98,7 @@
1.13 this.startupMenuItem = new System.Windows.Forms.MenuItem();
1.14 this.separatorMenuItem = new System.Windows.Forms.MenuItem();
1.15 this.temperatureUnitsMenuItem = new System.Windows.Forms.MenuItem();
1.16 - this.celciusMenuItem = new System.Windows.Forms.MenuItem();
1.17 + this.celsiusMenuItem = new System.Windows.Forms.MenuItem();
1.18 this.fahrenheitMenuItem = new System.Windows.Forms.MenuItem();
1.19 this.MenuItem4 = new System.Windows.Forms.MenuItem();
1.20 this.hddMenuItem = new System.Windows.Forms.MenuItem();
1.21 @@ -364,15 +364,15 @@
1.22 //
1.23 this.temperatureUnitsMenuItem.Index = 5;
1.24 this.temperatureUnitsMenuItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
1.25 - this.celciusMenuItem,
1.26 + this.celsiusMenuItem,
1.27 this.fahrenheitMenuItem});
1.28 this.temperatureUnitsMenuItem.Text = "Temperature Unit";
1.29 //
1.30 - // celciusMenuItem
1.31 + // celsiusMenuItem
1.32 //
1.33 - this.celciusMenuItem.Index = 0;
1.34 - this.celciusMenuItem.Text = "Celcius";
1.35 - this.celciusMenuItem.Click += new System.EventHandler(this.celciusMenuItem_Click);
1.36 + this.celsiusMenuItem.Index = 0;
1.37 + this.celsiusMenuItem.Text = "Celsius";
1.38 + this.celsiusMenuItem.Click += new System.EventHandler(this.celsiusMenuItem_Click);
1.39 //
1.40 // fahrenheitMenuItem
1.41 //
1.42 @@ -566,7 +566,7 @@
1.43 private System.Windows.Forms.MenuItem maxMenuItem;
1.44 private System.Windows.Forms.MenuItem temperatureUnitsMenuItem;
1.45 private System.Windows.Forms.MenuItem MenuItem4;
1.46 - private System.Windows.Forms.MenuItem celciusMenuItem;
1.47 + private System.Windows.Forms.MenuItem celsiusMenuItem;
1.48 private System.Windows.Forms.MenuItem fahrenheitMenuItem;
1.49 private System.Windows.Forms.MenuItem sumbitReportMenuItem;
1.50 private System.Windows.Forms.MenuItem MenuItem2;
2.1 --- a/GUI/MainForm.cs Sun Jun 19 12:41:18 2011 +0000
2.2 +++ b/GUI/MainForm.cs Sun Jun 19 12:51:17 2011 +0000
2.3 @@ -235,9 +235,9 @@
2.4 gadget.Visible = showGadget.Value;
2.5 };
2.6
2.7 - celciusMenuItem.Checked =
2.8 - unitManager.TemperatureUnit == TemperatureUnit.Celcius;
2.9 - fahrenheitMenuItem.Checked = !celciusMenuItem.Checked;
2.10 + celsiusMenuItem.Checked =
2.11 + unitManager.TemperatureUnit == TemperatureUnit.Celsius;
2.12 + fahrenheitMenuItem.Checked = !celsiusMenuItem.Checked;
2.13
2.14 InitializePlotForm();
2.15
2.16 @@ -689,14 +689,14 @@
2.17 }
2.18 }
2.19
2.20 - private void celciusMenuItem_Click(object sender, EventArgs e) {
2.21 - celciusMenuItem.Checked = true;
2.22 + private void celsiusMenuItem_Click(object sender, EventArgs e) {
2.23 + celsiusMenuItem.Checked = true;
2.24 fahrenheitMenuItem.Checked = false;
2.25 - unitManager.TemperatureUnit = TemperatureUnit.Celcius;
2.26 + unitManager.TemperatureUnit = TemperatureUnit.Celsius;
2.27 }
2.28
2.29 private void fahrenheitMenuItem_Click(object sender, EventArgs e) {
2.30 - celciusMenuItem.Checked = false;
2.31 + celsiusMenuItem.Checked = false;
2.32 fahrenheitMenuItem.Checked = true;
2.33 unitManager.TemperatureUnit = TemperatureUnit.Fahrenheit;
2.34 }
3.1 --- a/GUI/UnitManager.cs Sun Jun 19 12:41:18 2011 +0000
3.2 +++ b/GUI/UnitManager.cs Sun Jun 19 12:51:17 2011 +0000
3.3 @@ -16,7 +16,7 @@
3.4
3.5 The Initial Developer of the Original Code is
3.6 Michael Möller <m.moeller@gmx.ch>.
3.7 - Portions created by the Initial Developer are Copyright (C) 2009-2010
3.8 + Portions created by the Initial Developer are Copyright (C) 2009-2011
3.9 the Initial Developer. All Rights Reserved.
3.10
3.11 Contributor(s):
3.12 @@ -41,7 +41,7 @@
3.13 namespace OpenHardwareMonitor.GUI {
3.14
3.15 public enum TemperatureUnit {
3.16 - Celcius = 0,
3.17 + Celsius = 0,
3.18 Fahrenheit = 1
3.19 }
3.20
3.21 @@ -53,7 +53,7 @@
3.22 public UnitManager(PersistentSettings settings) {
3.23 this.settings = settings;
3.24 this.temperatureUnit = (TemperatureUnit)settings.GetValue("TemperatureUnit",
3.25 - (int)TemperatureUnit.Celcius);
3.26 + (int)TemperatureUnit.Celsius);
3.27 }
3.28
3.29 public TemperatureUnit TemperatureUnit {