M
mp
amazing, i think this is working!!!
this is the output from some debug.print lines to trace action:
view creates presenter
presenter creates model
presenter asks model to subscribe to presenter's events
model subscribes to presenter events
presenter subscribes to models GotCriteriaDictionary event
presenter subscribes to view's events
view subscribe to presenter's GotCriteriaDictionary event
view raises event GetCriteriaDictionary
presenter catch event from view GetCriteriaDictionary
presenter raise event to model GetCriteriaDictionary
model catches event from presenter GetCriteriaDictionary
model gets data into sortedDictionary to pass back upstream
model raise event GotCriteriaDictionary and pass back CriteriaDictionary in
eventargs object
presenter catches event from model and raises event to view
view catches event from presenter and gets dictionary from event arg
view inserts dictionary into listview
does this look approximately right?
it appears to work...amazingly enough...
thanks to Peter and Jeff's collective patience![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)
i wasn't sure about the last item
view inserts dictionary into listview
is that too much responsibility inside the view?
should presenter be filling the listview instead?
ie view exposes listview property which presenter fills?
thanks
mark
this is the output from some debug.print lines to trace action:
view creates presenter
presenter creates model
presenter asks model to subscribe to presenter's events
model subscribes to presenter events
presenter subscribes to models GotCriteriaDictionary event
presenter subscribes to view's events
view subscribe to presenter's GotCriteriaDictionary event
view raises event GetCriteriaDictionary
presenter catch event from view GetCriteriaDictionary
presenter raise event to model GetCriteriaDictionary
model catches event from presenter GetCriteriaDictionary
model gets data into sortedDictionary to pass back upstream
model raise event GotCriteriaDictionary and pass back CriteriaDictionary in
eventargs object
presenter catches event from model and raises event to view
view catches event from presenter and gets dictionary from event arg
view inserts dictionary into listview
does this look approximately right?
it appears to work...amazingly enough...
thanks to Peter and Jeff's collective patience
![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)
i wasn't sure about the last item
view inserts dictionary into listview
is that too much responsibility inside the view?
should presenter be filling the listview instead?
ie view exposes listview property which presenter fills?
thanks
mark