drakenya / AcelaController

0 stars 0 forks source link

Add observer to SmartCab #2

Open drakenya opened 6 years ago

drakenya commented 6 years ago

Add an observer to the SmartCab, for this sequence:

  1. Observer attached to SmartCab, with access to the CommandQueue
  2. user changes SmartCab control on Form
  3. Form updates SmartCab
  4. SmartCab marks itself as "dirty" as a value has changed
  5. SmartCab triggers the observer, indicating it's been changed

See:

drakenya commented 6 years ago

See also:

For the main command queue.

drakenya commented 6 years ago

This may not work on the AcelaConnector, due to multiple/many-to-many connections something could get lost. Look into switching to a base Rx.

See:

drakenya commented 6 years ago
this.trkCab1Inertia.DataBindings.Add("Value", xx, "Inertia", false, DataSourceUpdateMode.OnPropertyChanged);
this.trackBar1.DataBindings.Add("Value", xx, "Inertia", true, DataSourceUpdateMode.OnPropertyChanged);

https://stackoverflow.com/questions/1453958/databinding-to-a-custom-class-in-c-sharp