mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 22:05:08 +00:00
Fixed issue 239.
This commit is contained in:
16
GUI/MainForm.Designer.cs
generated
16
GUI/MainForm.Designer.cs
generated
@@ -16,7 +16,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Michael Möller <m.moeller@gmx.ch>.
|
||||
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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Michael Möller <m.moeller@gmx.ch>.
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user