Added a Parent property to the WMI exposed Hardware objects

This commit is contained in:
Paul Werelds
2010-10-18 07:15:31 +00:00
parent ecefde3ac4
commit c3c27c3789
+2
View File
@@ -46,6 +46,7 @@ namespace OpenHardwareMonitor.WMI {
public string HardwareType { get; private set; }
public string Identifier { get; private set; }
public string Name { get; private set; }
public string Parent { get; private set; }
#endregion
@@ -53,6 +54,7 @@ namespace OpenHardwareMonitor.WMI {
Name = hardware.Name;
Identifier = hardware.Identifier.ToString();
HardwareType = hardware.HardwareType.ToString();
Parent = hardware.Parent.Identifier.ToString();
}
public void Update() { }