My old way of handling WinForms application was throwing all the logic into the form itself.
I'm trying to start utilizing MVC/MVP practices with my WinForms applications.
Can someone show me an example of how I would use MVC/MVP in conjunction with say, a ListView? I use to use the Tag property of the ListView itself to store the objects being represented in the ListView.
I realize this is a bad practice and tightly couples me to my presentation but I have trouble breaking free of it.
For example, I had a "Loot History" ListView that showed a list of items I had looted from an MMO. I was using the "Tag" property of each new ListView item to store the "Loot" object itself. So when I performed a delete or search among the loot I would search the tags of this listview.
What is the correct way to handle this situation?
Should my controller class be holding onto a List of my loot items, and it supplies this to my Form? Does the controller instantiate/own the form? If not, then who instantiates it?