MVC question

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
 
D

David McCallum

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top