Hardware/Mainboard/Mainboard.cs
changeset 195 0ee888c485d5
parent 182 4801e9eaf979
child 275 35788ddd1825
     1.1 --- a/Hardware/Mainboard/Mainboard.cs	Tue Sep 21 10:33:28 2010 +0000
     1.2 +++ b/Hardware/Mainboard/Mainboard.cs	Tue Sep 21 20:32:36 2010 +0000
     1.3 @@ -41,12 +41,12 @@
     1.4  
     1.5  namespace OpenHardwareMonitor.Hardware.Mainboard {
     1.6    internal class Mainboard : IHardware {
     1.7 -    private SMBIOS smbios;
     1.8 -    private string name;
     1.9 +    private readonly SMBIOS smbios;
    1.10 +    private readonly string name;
    1.11  
    1.12 -    private LPCIO lpcio;
    1.13 -    private LMSensors lmSensors;
    1.14 -    private IHardware[] superIOHardware;
    1.15 +    private readonly LPCIO lpcio;
    1.16 +    private readonly LMSensors lmSensors;
    1.17 +    private readonly IHardware[] superIOHardware;
    1.18  
    1.19      public Mainboard(ISettings settings) {
    1.20        this.smbios = new SMBIOS();
    1.21 @@ -66,7 +66,7 @@
    1.22        }
    1.23  
    1.24        ISuperIO[] superIO;
    1.25 -      int p = (int)System.Environment.OSVersion.Platform;
    1.26 +      int p = (int)Environment.OSVersion.Platform;
    1.27        if ((p == 4) || (p == 128)) {
    1.28          this.lmSensors = new LMSensors();
    1.29          superIO = lmSensors.SuperIO;