Changed minimizing to system tray on Windows systems.

This commit is contained in:
Michael Möller
2010-02-05 22:45:15 +00:00
parent 0543259a0b
commit 15162a2a12
6 changed files with 357 additions and 257 deletions

View File

@@ -61,14 +61,8 @@ namespace OpenHardwareMonitor.Hardware {
private const int MAX_MINUTES = 120;
private string GetIdentifier() {
string s = "";
switch (sensorType) {
case SensorType.Voltage: s = "voltage"; break;
case SensorType.Clock: s = "clock"; break;
case SensorType.Temperature: s = "temperature"; break;
case SensorType.Fan: s = "fan"; break;
}
return hardware.Identifier + "/" + s + "/" + index;
return hardware.Identifier + "/" + sensorType.ToString().ToLower() +
"/" + index;
}
public Sensor(string name, int index, SensorType sensorType,