MVC question

  • Thread starter Thread starter Bill Gower
  • Start date Start date
B

Bill Gower

I have a form that has 2 listboxes on it. The user can click a button and
send an item from one listbox to the other one.
When the user clicks the button, who should handle the move? Should the
view move the item into the other listbox or should an event be fired and
have the controller add the item to an arraylist and send a message to
refresh the listbox?

Bill
 
Bill Gower said:
I have a form that has 2 listboxes on it. The user can click a button and
send an item from one listbox to the other one.
When the user clicks the button, who should handle the move? Should the
view move the item into the other listbox or should an event be fired and
have the controller add the item to an arraylist and send a message to
refresh the listbox?

Bill

I would say the controller, another view with different listboxes would mean
the code to move the items being rewritten.

David McCallum
 
Back
Top