GUI/SensorNode.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 217 d93ddd6ca0af
     1.1 --- a/GUI/SensorNode.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/GUI/SensorNode.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -76,7 +76,7 @@
     1.4          case SensorType.Control: format = "{0:F1} %"; break;
     1.5        }
     1.6  
     1.7 -      bool hidden = settings.Get(new Identifier(sensor.Identifier, 
     1.8 +      bool hidden = settings.GetValue(new Identifier(sensor.Identifier, 
     1.9          "hidden").ToString(), sensor.IsDefaultHidden);
    1.10        base.IsVisible = !hidden;
    1.11      }
    1.12 @@ -90,7 +90,7 @@
    1.13        get { return base.IsVisible; }
    1.14        set { 
    1.15          base.IsVisible = value;
    1.16 -        settings.Set(new Identifier(sensor.Identifier,
    1.17 +        settings.SetValue(new Identifier(sensor.Identifier,
    1.18            "hidden").ToString(), !value);
    1.19        }
    1.20      }