How to know if value of the switcher has changed?

To do this, use the ValueChanged event of the Slider element:

(indicatorWidget1.Instrument.GetByName("Slider1"as Slider).ValueChanged += new PerpetuumSoft.Framework.Model.PropertyEventHandler(Form1_ValueChanged);

Then analize the Value property of the Slider in the handler:

(sender as Slider).Value

Usually the” 1” value is used for the “switched-on” status and the “0” value for “switched -off”

Add Feedback