Beispiel #1
0
 public NVMeSensor(string name, int index, bool defaultHidden,
                   SensorType sensorType, Hardware hardware, ISettings settings,
                   GetSensorValue getValue)
     : base(name, index, defaultHidden, sensorType, hardware, null, settings)
 {
     this.getValue = getValue;
 }
Beispiel #2
0
        private void AddSensor(string name, int index, bool defaultHidden,
                               SensorType sensorType, GetSensorValue getValue)
        {
            NVMeSensor sensor = new NVMeSensor(name, index, defaultHidden, sensorType, this, settings, getValue);

            ActivateSensor(sensor);
            sensors.Add(sensor);
        }