1.1 --- a/GUI/SensorNode.cs Sun Jan 01 15:46:42 2012 +0000
1.2 +++ b/GUI/SensorNode.cs Sun Jan 01 17:12:34 2012 +0000
1.3 @@ -82,6 +82,9 @@
1.4 bool hidden = settings.GetValue(new Identifier(sensor.Identifier,
1.5 "hidden").ToString(), sensor.IsDefaultHidden);
1.6 base.IsVisible = !hidden;
1.7 +
1.8 + this.Plot = settings.GetValue(new Identifier(sensor.Identifier,
1.9 + "plot").ToString(), false);
1.10 }
1.11
1.12 public override string Text {
1.13 @@ -100,9 +103,17 @@
1.14
1.15 public bool Plot {
1.16 get { return plot; }
1.17 - set { plot = value; }
1.18 + set {
1.19 + plot = value;
1.20 + settings.SetValue(new Identifier(sensor.Identifier, "plot").ToString(),
1.21 + value);
1.22 + if (PlotSelectionChanged != null)
1.23 + PlotSelectionChanged(this, null);
1.24 + }
1.25 }
1.26
1.27 + public event EventHandler PlotSelectionChanged;
1.28 +
1.29 public ISensor Sensor {
1.30 get { return sensor; }
1.31 }