diff -r a41745e3828d -r e837e1e4b282 GUI/SensorNode.cs --- a/GUI/SensorNode.cs Sun Jan 01 15:46:42 2012 +0000 +++ b/GUI/SensorNode.cs Sun Jan 01 17:12:34 2012 +0000 @@ -82,6 +82,9 @@ bool hidden = settings.GetValue(new Identifier(sensor.Identifier, "hidden").ToString(), sensor.IsDefaultHidden); base.IsVisible = !hidden; + + this.Plot = settings.GetValue(new Identifier(sensor.Identifier, + "plot").ToString(), false); } public override string Text { @@ -100,9 +103,17 @@ public bool Plot { get { return plot; } - set { plot = value; } + set { + plot = value; + settings.SetValue(new Identifier(sensor.Identifier, "plot").ToString(), + value); + if (PlotSelectionChanged != null) + PlotSelectionChanged(this, null); + } } + public event EventHandler PlotSelectionChanged; + public ISensor Sensor { get { return sensor; } }