auto lovely ui business objects change
this some-more settlement question.
i am building apparatus displays business objects several ways (ie tree nodes, list perspective items, combo boxes, calm fields, etc). anytime user changes any them, an eventuality carried signals that business vigilant altered collection belongs changed. given business object, collection competence go to, competence displayed some-more place, any those ui elements needs updated simulate change. there an glorious fortitude carrying any form ui component transform justly eventuality change?
i have few ideas done, nonetheless i'd anyone problem happy solution. c# winform, nonetheless fortitude any language.
my tide thoughts problem illusory solution:
it gets some-more difficult wish purify adult eventuality bindings (ie businessobject.changed -= objectchanged) your business objects spin biased treenodecollection/listviewitemcollection/comboboxitemcollection clear() called collection.
what "service", where any vigilant the ui component register itself with, where business object's events listened location, any ui component updated events raised? ui elements have unregistered themselves, following subscription object's eventuality removed.
the problem fortitude each control have grateful arising ui member vigilant each origination - messy.
your thoughts?
Comments
Post a Comment