Fixed Issue 10.

This commit is contained in:
Michael Möller 2010-05-20 21:23:54 +00:00
parent ea228677db
commit 8e5e1d7d19
13 changed files with 163 additions and 38 deletions

View File

@ -93,6 +93,10 @@ namespace OpenHardwareMonitor.GUI {
this.minTrayMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.minTrayMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.startupMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.startupMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.temperatureUnitsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.celciusToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fahrenheitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripSeparator();
this.hddMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.hddMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -138,7 +142,7 @@ namespace OpenHardwareMonitor.GUI {
this.treeView.NodeControls.Add(this.nodeTextBoxLimit); this.treeView.NodeControls.Add(this.nodeTextBoxLimit);
this.treeView.RowHeight = 18; this.treeView.RowHeight = 18;
this.treeView.SelectedNode = null; this.treeView.SelectedNode = null;
this.treeView.Size = new System.Drawing.Size(478, 567); this.treeView.Size = new System.Drawing.Size(410, 488);
this.treeView.TabIndex = 0; this.treeView.TabIndex = 0;
this.treeView.Text = "treeView"; this.treeView.Text = "treeView";
this.treeView.UseColumns = true; this.treeView.UseColumns = true;
@ -240,8 +244,7 @@ namespace OpenHardwareMonitor.GUI {
this.helpToolStripMenuItem}); this.helpToolStripMenuItem});
this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Location = new System.Drawing.Point(0, 0);
this.menuStrip.Name = "menuStrip"; this.menuStrip.Name = "menuStrip";
this.menuStrip.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2); this.menuStrip.Size = new System.Drawing.Size(410, 24);
this.menuStrip.Size = new System.Drawing.Size(478, 24);
this.menuStrip.TabIndex = 1; this.menuStrip.TabIndex = 1;
this.menuStrip.Text = "menuStrip1"; this.menuStrip.Text = "menuStrip1";
// //
@ -319,7 +322,7 @@ namespace OpenHardwareMonitor.GUI {
this.valueMenuItem.CheckOnClick = true; this.valueMenuItem.CheckOnClick = true;
this.valueMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.valueMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.valueMenuItem.Name = "valueMenuItem"; this.valueMenuItem.Name = "valueMenuItem";
this.valueMenuItem.Size = new System.Drawing.Size(152, 22); this.valueMenuItem.Size = new System.Drawing.Size(103, 22);
this.valueMenuItem.Text = "Value"; this.valueMenuItem.Text = "Value";
this.valueMenuItem.CheckedChanged += new System.EventHandler(this.valueMenuItem_CheckedChanged); this.valueMenuItem.CheckedChanged += new System.EventHandler(this.valueMenuItem_CheckedChanged);
// //
@ -329,7 +332,7 @@ namespace OpenHardwareMonitor.GUI {
this.minMenuItem.CheckOnClick = true; this.minMenuItem.CheckOnClick = true;
this.minMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.minMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.minMenuItem.Name = "minMenuItem"; this.minMenuItem.Name = "minMenuItem";
this.minMenuItem.Size = new System.Drawing.Size(152, 22); this.minMenuItem.Size = new System.Drawing.Size(103, 22);
this.minMenuItem.Text = "Min"; this.minMenuItem.Text = "Min";
this.minMenuItem.CheckedChanged += new System.EventHandler(this.minMenuItem_CheckedChanged); this.minMenuItem.CheckedChanged += new System.EventHandler(this.minMenuItem_CheckedChanged);
// //
@ -339,7 +342,7 @@ namespace OpenHardwareMonitor.GUI {
this.maxMenuItem.CheckOnClick = true; this.maxMenuItem.CheckOnClick = true;
this.maxMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.maxMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.maxMenuItem.Name = "maxMenuItem"; this.maxMenuItem.Name = "maxMenuItem";
this.maxMenuItem.Size = new System.Drawing.Size(152, 22); this.maxMenuItem.Size = new System.Drawing.Size(103, 22);
this.maxMenuItem.Text = "Max"; this.maxMenuItem.Text = "Max";
this.maxMenuItem.CheckedChanged += new System.EventHandler(this.maxMenuItem_CheckedChanged); this.maxMenuItem.CheckedChanged += new System.EventHandler(this.maxMenuItem_CheckedChanged);
// //
@ -349,7 +352,7 @@ namespace OpenHardwareMonitor.GUI {
this.limitMenuItem.CheckOnClick = true; this.limitMenuItem.CheckOnClick = true;
this.limitMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; this.limitMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.limitMenuItem.Name = "limitMenuItem"; this.limitMenuItem.Name = "limitMenuItem";
this.limitMenuItem.Size = new System.Drawing.Size(152, 22); this.limitMenuItem.Size = new System.Drawing.Size(103, 22);
this.limitMenuItem.Text = "Limit"; this.limitMenuItem.Text = "Limit";
this.limitMenuItem.CheckedChanged += new System.EventHandler(this.limitMenuItem_CheckedChanged); this.limitMenuItem.CheckedChanged += new System.EventHandler(this.limitMenuItem_CheckedChanged);
// //
@ -360,6 +363,8 @@ namespace OpenHardwareMonitor.GUI {
this.minTrayMenuItem, this.minTrayMenuItem,
this.startupMenuItem, this.startupMenuItem,
this.toolStripMenuItem3, this.toolStripMenuItem3,
this.temperatureUnitsToolStripMenuItem,
this.toolStripMenuItem4,
this.hddMenuItem}); this.hddMenuItem});
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20);
@ -393,12 +398,40 @@ namespace OpenHardwareMonitor.GUI {
this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(204, 6); this.toolStripMenuItem3.Size = new System.Drawing.Size(204, 6);
// //
// temperatureUnitsToolStripMenuItem
//
this.temperatureUnitsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.celciusToolStripMenuItem,
this.fahrenheitToolStripMenuItem});
this.temperatureUnitsToolStripMenuItem.Name = "temperatureUnitsToolStripMenuItem";
this.temperatureUnitsToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
this.temperatureUnitsToolStripMenuItem.Text = "Temperature Unit";
//
// celciusToolStripMenuItem
//
this.celciusToolStripMenuItem.Name = "celciusToolStripMenuItem";
this.celciusToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.celciusToolStripMenuItem.Text = "Celcius";
this.celciusToolStripMenuItem.Click += new System.EventHandler(this.celciusToolStripMenuItem_Click);
//
// fahrenheitToolStripMenuItem
//
this.fahrenheitToolStripMenuItem.Name = "fahrenheitToolStripMenuItem";
this.fahrenheitToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.fahrenheitToolStripMenuItem.Text = "Fahrenheit";
this.fahrenheitToolStripMenuItem.Click += new System.EventHandler(this.fahrenheitToolStripMenuItem_Click);
//
// toolStripMenuItem4
//
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
this.toolStripMenuItem4.Size = new System.Drawing.Size(204, 6);
//
// hddMenuItem // hddMenuItem
// //
this.hddMenuItem.CheckOnClick = true; this.hddMenuItem.CheckOnClick = true;
this.hddMenuItem.Name = "hddMenuItem"; this.hddMenuItem.Name = "hddMenuItem";
this.hddMenuItem.Size = new System.Drawing.Size(207, 22); this.hddMenuItem.Size = new System.Drawing.Size(207, 22);
this.hddMenuItem.Text = "HDD sensors"; this.hddMenuItem.Text = "Read HDD sensors";
this.hddMenuItem.CheckedChanged += new System.EventHandler(this.hddsensorsToolStripMenuItem_CheckedChanged); this.hddMenuItem.CheckedChanged += new System.EventHandler(this.hddsensorsToolStripMenuItem_CheckedChanged);
// //
// helpToolStripMenuItem // helpToolStripMenuItem
@ -431,8 +464,8 @@ namespace OpenHardwareMonitor.GUI {
// //
this.splitContainer.Panel2.Controls.Add(this.plotPanel); this.splitContainer.Panel2.Controls.Add(this.plotPanel);
this.splitContainer.Panel2.Cursor = System.Windows.Forms.Cursors.Default; this.splitContainer.Panel2.Cursor = System.Windows.Forms.Cursors.Default;
this.splitContainer.Size = new System.Drawing.Size(478, 768); this.splitContainer.Size = new System.Drawing.Size(410, 662);
this.splitContainer.SplitterDistance = 567; this.splitContainer.SplitterDistance = 488;
this.splitContainer.SplitterWidth = 3; this.splitContainer.SplitterWidth = 3;
this.splitContainer.TabIndex = 3; this.splitContainer.TabIndex = 3;
// //
@ -442,7 +475,7 @@ namespace OpenHardwareMonitor.GUI {
this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.plotPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.plotPanel.Location = new System.Drawing.Point(0, 0); this.plotPanel.Location = new System.Drawing.Point(0, 0);
this.plotPanel.Name = "plotPanel"; this.plotPanel.Name = "plotPanel";
this.plotPanel.Size = new System.Drawing.Size(478, 198); this.plotPanel.Size = new System.Drawing.Size(410, 171);
this.plotPanel.TabIndex = 0; this.plotPanel.TabIndex = 0;
// //
// notifyContextMenuStrip // notifyContextMenuStrip
@ -452,24 +485,24 @@ namespace OpenHardwareMonitor.GUI {
this.toolStripMenuItem2, this.toolStripMenuItem2,
this.exitToolStripMenuItem1}); this.exitToolStripMenuItem1});
this.notifyContextMenuStrip.Name = "notifyContextMenuStrip"; this.notifyContextMenuStrip.Name = "notifyContextMenuStrip";
this.notifyContextMenuStrip.Size = new System.Drawing.Size(137, 54); this.notifyContextMenuStrip.Size = new System.Drawing.Size(134, 54);
// //
// hideShowToolStripMenuItem // hideShowToolStripMenuItem
// //
this.hideShowToolStripMenuItem.Name = "hideShowToolStripMenuItem"; this.hideShowToolStripMenuItem.Name = "hideShowToolStripMenuItem";
this.hideShowToolStripMenuItem.Size = new System.Drawing.Size(136, 22); this.hideShowToolStripMenuItem.Size = new System.Drawing.Size(133, 22);
this.hideShowToolStripMenuItem.Text = "Hide/Show"; this.hideShowToolStripMenuItem.Text = "Hide/Show";
this.hideShowToolStripMenuItem.Click += new System.EventHandler(this.hideShowClick); this.hideShowToolStripMenuItem.Click += new System.EventHandler(this.hideShowClick);
// //
// toolStripMenuItem2 // toolStripMenuItem2
// //
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(133, 6); this.toolStripMenuItem2.Size = new System.Drawing.Size(130, 6);
// //
// exitToolStripMenuItem1 // exitToolStripMenuItem1
// //
this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1"; this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1";
this.exitToolStripMenuItem1.Size = new System.Drawing.Size(136, 22); this.exitToolStripMenuItem1.Size = new System.Drawing.Size(133, 22);
this.exitToolStripMenuItem1.Text = "Exit"; this.exitToolStripMenuItem1.Text = "Exit";
this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
// //
@ -493,9 +526,9 @@ namespace OpenHardwareMonitor.GUI {
// //
// MainForm // MainForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(478, 792); this.ClientSize = new System.Drawing.Size(410, 686);
this.Controls.Add(this.splitContainer); this.Controls.Add(this.splitContainer);
this.Controls.Add(this.menuStrip); this.Controls.Add(this.menuStrip);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@ -560,6 +593,10 @@ namespace OpenHardwareMonitor.GUI {
private System.Windows.Forms.ToolStripMenuItem minMenuItem; private System.Windows.Forms.ToolStripMenuItem minMenuItem;
private System.Windows.Forms.ToolStripMenuItem maxMenuItem; private System.Windows.Forms.ToolStripMenuItem maxMenuItem;
private System.Windows.Forms.ToolStripMenuItem limitMenuItem; private System.Windows.Forms.ToolStripMenuItem limitMenuItem;
private System.Windows.Forms.ToolStripMenuItem temperatureUnitsToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem4;
private System.Windows.Forms.ToolStripMenuItem celciusToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem fahrenheitToolStripMenuItem;
} }
} }

View File

@ -151,6 +151,10 @@ namespace OpenHardwareMonitor.GUI {
startupMenuItem.Checked = startupManager.Startup; startupMenuItem.Checked = startupManager.Startup;
hddMenuItem.Checked = Config.Get(hddMenuItem.Name, true); hddMenuItem.Checked = Config.Get(hddMenuItem.Name, true);
celciusToolStripMenuItem.Checked =
UnitManager.TemperatureUnit == TemperatureUnit.Celcius;
fahrenheitToolStripMenuItem.Checked = !celciusToolStripMenuItem.Checked;
if (startMinMenuItem.Checked) { if (startMinMenuItem.Checked) {
if (!minTrayMenuItem.Checked) { if (!minTrayMenuItem.Checked) {
WindowState = FormWindowState.Minimized; WindowState = FormWindowState.Minimized;
@ -439,5 +443,17 @@ namespace OpenHardwareMonitor.GUI {
private void limitMenuItem_CheckedChanged(object sender, EventArgs e) { private void limitMenuItem_CheckedChanged(object sender, EventArgs e) {
treeView.Columns[4].IsVisible = limitMenuItem.Checked; treeView.Columns[4].IsVisible = limitMenuItem.Checked;
} }
private void celciusToolStripMenuItem_Click(object sender, EventArgs e) {
celciusToolStripMenuItem.Checked = true;
fahrenheitToolStripMenuItem.Checked = false;
UnitManager.TemperatureUnit = TemperatureUnit.Celcius;
}
private void fahrenheitToolStripMenuItem_Click(object sender, EventArgs e) {
celciusToolStripMenuItem.Checked = false;
fahrenheitToolStripMenuItem.Checked = true;
UnitManager.TemperatureUnit = TemperatureUnit.Fahrenheit;
}
} }
} }

View File

@ -121,16 +121,16 @@
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<metadata name="notifyContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="notifyContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>322, 17</value> <value>125, 17</value>
</metadata> </metadata>
<metadata name="sensorContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="sensorContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>504, 17</value> <value>307, 17</value>
</metadata> </metadata>
<metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="saveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>690, 17</value> <value>493, 17</value>
</metadata> </metadata>
<metadata name="timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>819, 17</value> <value>622, 17</value>
</metadata> </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>55</value> <value>55</value>

View File

@ -48,9 +48,14 @@ namespace OpenHardwareMonitor.GUI {
private bool plot = false; private bool plot = false;
public string ValueToString(float? value) { public string ValueToString(float? value) {
if (value.HasValue) if (value.HasValue) {
if (sensor.SensorType == SensorType.Temperature &&
UnitManager.TemperatureUnit == TemperatureUnit.Fahrenheit) {
return string.Format("{0:F1} °F", value * 1.8 + 32);
} else {
return string.Format(format, value); return string.Format(format, value);
else }
} else
return "-"; return "-";
} }

66
GUI/UnitManager.cs Normal file
View File

@ -0,0 +1,66 @@
/*
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the License.
The Original Code is the Open Hardware Monitor code.
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
the Initial Developer. All Rights Reserved.
Contributor(s):
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
*/
using System;
using System.Collections.Generic;
using OpenHardwareMonitor.Utilities;
namespace OpenHardwareMonitor.GUI {
public enum TemperatureUnit {
Celcius = 0,
Fahrenheit = 1
}
public class UnitManager {
private static TemperatureUnit temperatureUnit;
static UnitManager () {
temperatureUnit = (TemperatureUnit)Config.Get("TemperatureUnit",
(int)TemperatureUnit.Celcius);
}
public static TemperatureUnit TemperatureUnit {
get { return temperatureUnit; }
set {
temperatureUnit = value;
Config.Set("TemperatureUnit", (int)temperatureUnit);
}
}
}
}

View File

@ -90,7 +90,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
coreTemperatures[i] = coreTemperatures[i] =
new Sensor("Core #" + (i + 1), i, null, SensorType.Temperature, new Sensor("Core #" + (i + 1), i, null, SensorType.Temperature,
this, new ParameterDescription[] { this, new ParameterDescription[] {
new ParameterDescription("Offset", new ParameterDescription("Offset [°C]",
"Temperature offset of the thermal sensor.\n" + "Temperature offset of the thermal sensor.\n" +
"Temperature = Value + Offset.", offset) "Temperature = Value + Offset.", offset)
}); });

View File

@ -87,7 +87,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
coreTemperature = new Sensor( coreTemperature = new Sensor(
"Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0, null, "Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0, null,
SensorType.Temperature, this, new ParameterDescription[] { SensorType.Temperature, this, new ParameterDescription[] {
new ParameterDescription("Offset", "Temperature offset.", 0) new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
}); });
pciAddress = WinRing0.FindPciDeviceById(PCI_AMD_VENDOR_ID, pciAddress = WinRing0.FindPciDeviceById(PCI_AMD_VENDOR_ID,

View File

@ -175,10 +175,10 @@ namespace OpenHardwareMonitor.Hardware.CPU {
coreTemperatures[i] = new Sensor(CoreString(i), i, tjMax[i], coreTemperatures[i] = new Sensor(CoreString(i), i, tjMax[i],
SensorType.Temperature, this, new ParameterDescription[] { SensorType.Temperature, this, new ParameterDescription[] {
new ParameterDescription( new ParameterDescription(
"TjMax", "TjMax temperature of the core.\n" + "TjMax [°C]", "TjMax temperature of the core.\n" +
"Temperature = TjMax - TSlope * Value.", tjMax[i]), "Temperature = TjMax - TSlope * Value.", tjMax[i]),
new ParameterDescription( new ParameterDescription("TSlope [°C]",
"TSlope", "Temperature slope of the digital thermal sensor.\n" + "Temperature slope of the digital thermal sensor.\n" +
"Temperature = TjMax - TSlope * Value.", 1)}); "Temperature = TjMax - TSlope * Value.", 1)});
} }
} else { } else {

View File

@ -73,7 +73,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
for (int i = 0; i < temperatures.Length; i++) for (int i = 0; i < temperatures.Length; i++)
temperatures[i] = new Sensor("Temperature #" + (i + 1), i, null, temperatures[i] = new Sensor("Temperature #" + (i + 1), i, null,
SensorType.Temperature, this, new ParameterDescription[] { SensorType.Temperature, this, new ParameterDescription[] {
new ParameterDescription("Offset", "Temperature offset.", 0) new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
}); });
fans = new Sensor[chip == Chip.F71882 ? 4 : 3]; fans = new Sensor[chip == Chip.F71882 ? 4 : 3];

View File

@ -101,7 +101,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
for (int i = 0; i < temperatures.Length; i++) for (int i = 0; i < temperatures.Length; i++)
temperatures[i] = new Sensor("Temperature #" + (i + 1), i, null, temperatures[i] = new Sensor("Temperature #" + (i + 1), i, null,
SensorType.Temperature, this, new ParameterDescription[] { SensorType.Temperature, this, new ParameterDescription[] {
new ParameterDescription("Offset", "Temperature offset.", 0) new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
}); });
fans = new Sensor[5]; fans = new Sensor[5];

View File

@ -112,7 +112,7 @@ namespace OpenHardwareMonitor.Hardware.LPC {
available = IsWinbondVendor(); available = IsWinbondVendor();
ParameterDescription[] parameter = new ParameterDescription[] { ParameterDescription[] parameter = new ParameterDescription[] {
new ParameterDescription("Offset", "Temperature offset.", 0) new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
}; };
List<Sensor> list = new List<Sensor>(); List<Sensor> list = new List<Sensor>();
switch (chip) { switch (chip) {

View File

@ -73,7 +73,7 @@ namespace OpenHardwareMonitor.Hardware.TBalancer {
this.protocolVersion = protocolVersion; this.protocolVersion = protocolVersion;
ParameterDescription[] parameter = new ParameterDescription[] { ParameterDescription[] parameter = new ParameterDescription[] {
new ParameterDescription("Offset", "Temperature offset.", 0) new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
}; };
int offset = 0; int offset = 0;
for (int i = 0; i < digitalTemperatures.Length; i++) for (int i = 0; i < digitalTemperatures.Length; i++)

View File

@ -79,6 +79,7 @@
<Compile Include="GUI\TaskScheduler.cs" /> <Compile Include="GUI\TaskScheduler.cs" />
<Compile Include="GUI\TreeModel.cs" /> <Compile Include="GUI\TreeModel.cs" />
<Compile Include="GUI\TypeNode.cs" /> <Compile Include="GUI\TypeNode.cs" />
<Compile Include="GUI\UnitManager.cs" />
<Compile Include="GUI\UpdateVisitor.cs" /> <Compile Include="GUI\UpdateVisitor.cs" />
<Compile Include="Hardware\CPU\AMD10CPU.cs" /> <Compile Include="Hardware\CPU\AMD10CPU.cs" />
<Compile Include="Hardware\CPU\AMD0FCPU.cs" /> <Compile Include="Hardware\CPU\AMD0FCPU.cs" />