Hardware/Mainboard/SuperIOHardware.cs
changeset 165 813d8bc3192f
parent 154 9257814ba151
child 166 fa9dfbfc4145
     1.1 --- a/Hardware/Mainboard/SuperIOHardware.cs	Thu Aug 05 19:28:50 2010 +0000
     1.2 +++ b/Hardware/Mainboard/SuperIOHardware.cs	Sun Aug 08 13:57:26 2010 +0000
     1.3 @@ -37,25 +37,22 @@
     1.4  
     1.5  using System;
     1.6  using System.Collections.Generic;
     1.7 -using System.Drawing;
     1.8  using OpenHardwareMonitor.Hardware.LPC;
     1.9  
    1.10  namespace OpenHardwareMonitor.Hardware.Mainboard {
    1.11 -  public class SuperIOHardware : Hardware {
    1.12 +  internal class SuperIOHardware : Hardware {
    1.13  
    1.14      private ISuperIO superIO;
    1.15 -    private Image icon;
    1.16      protected readonly string name;
    1.17  
    1.18      private List<Sensor> voltages = new List<Sensor>();
    1.19      private List<Sensor> temperatures = new List<Sensor>();
    1.20      private List<Sensor> fans = new List<Sensor>();  
    1.21  
    1.22 -    public SuperIOHardware(ISuperIO superIO, Manufacturer manufacturer, 
    1.23 -      Model model) 
    1.24 +    public SuperIOHardware(ISuperIO superIO, Manufacturer manufacturer,
    1.25 +      Model model, ISettings settings) 
    1.26      {
    1.27        this.superIO = superIO;
    1.28 -      this.icon = Utilities.EmbeddedResources.GetImage("chip.png");
    1.29  
    1.30        switch (superIO.Chip) {
    1.31          case Chip.F71858: name = "Fintek F71858"; break;
    1.32 @@ -574,7 +571,7 @@
    1.33                formula, voltage.Rf),
    1.34              new ParameterDescription("Vf [V]", "Reference voltage.\n" + 
    1.35                formula, voltage.Vf)
    1.36 -            });
    1.37 +            }, settings);
    1.38            voltages.Add(sensor);
    1.39        }
    1.40  
    1.41 @@ -583,14 +580,14 @@
    1.42          Sensor sensor = new Sensor(temperature.Name, temperature.Index,
    1.43            SensorType.Temperature, this, new ParameterDescription[] {
    1.44            new ParameterDescription("Offset [°C]", "Temperature offset.", 0)
    1.45 -        });
    1.46 +        }, settings);
    1.47          temperatures.Add(sensor);
    1.48        }
    1.49  
    1.50        foreach (Fan fan in f)
    1.51          if (fan.Index < superIO.Fans.Length) {
    1.52            Sensor sensor = new Sensor(fan.Name, fan.Index, SensorType.Fan,
    1.53 -            this, null);
    1.54 +            this, settings);
    1.55            fans.Add(sensor);
    1.56          }
    1.57      }
    1.58 @@ -599,8 +596,8 @@
    1.59        get { return new Identifier("lpc", superIO.Chip.ToString().ToLower()); }
    1.60      }
    1.61  
    1.62 -    public override Image Icon {
    1.63 -      get { return icon; }
    1.64 +    public override HardwareType HardwareType {
    1.65 +      get { return HardwareType.SuperIO; }
    1.66      }
    1.67  
    1.68      public override string Name {