Changed a few context menu items to display a radio option style. Added additional information from the SMBIOS to the report.
3 This Source Code Form is subject to the terms of the Mozilla Public
4 License, v. 2.0. If a copy of the MPL was not distributed with this
5 file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 Copyright (C) 2012 Michael Möller <mmoeller@openhardwaremonitor.org>
13 namespace OpenHardwareMonitor.Hardware.RAM {
14 internal class RAMGroup : IGroup {
16 private IHardware[] hardware;
18 public RAMGroup(SMBIOS smbios, ISettings settings) {
20 // No implementation for RAM on Unix systems
21 int p = (int)Environment.OSVersion.Platform;
22 if ((p == 4) || (p == 128)) {
23 hardware = new IHardware[0];
28 if (smbios.MemoryDevices.Length > 0) {
29 name = smbios.MemoryDevices[0].ManufacturerName + " " +
30 smbios.MemoryDevices[0].PartNumber;
32 name = "Generic Memory";
35 hardware = new IHardware[] { new GenericRAM(name, settings) };
38 public string GetReport() {
42 public IHardware[] Hardware {