mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-23 18:37:18 +00:00
43 lines
995 B
C#
43 lines
995 B
C#
|
/*
|
|||
|
|
|||
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|||
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|||
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
|
|
|||
|
Copyright (C) 2012 Michael Möller <mmoeller@openhardwaremonitor.org>
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
namespace OpenHardwareMonitor.Hardware.RAM {
|
|||
|
internal class RAMGroup : IGroup {
|
|||
|
|
|||
|
private IHardware[] hardware;
|
|||
|
|
|||
|
public RAMGroup(SMBIOS smbios, ISettings settings) {
|
|||
|
string name;
|
|||
|
if (smbios.MemoryDevices.Length > 0) {
|
|||
|
name = smbios.MemoryDevices[0].ManufacturerName + " " +
|
|||
|
smbios.MemoryDevices[0].PartNumber;
|
|||
|
} else {
|
|||
|
name = "Generic Memory";
|
|||
|
}
|
|||
|
|
|||
|
hardware = new IHardware[] { new GenericRAM(name, settings) };
|
|||
|
}
|
|||
|
|
|||
|
public string GetReport() {
|
|||
|
return null;
|
|||
|
}
|
|||
|
|
|||
|
public IHardware[] Hardware {
|
|||
|
get {
|
|||
|
return hardware;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public void Close() {
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|