| Implementation Methodologies I'm building a fairly complex application and it's been awhile since I've built any desktop apps. Here's the issue I'm currently facing. I have a number of objects I've modeled and interfaces which need to manage the associations. The problem is that form controls don't allow a key to be associated with a particular line and I'm wondering how you all manage that.
For example, let's say that I was collecting information on computer suppliers. For each of the computers I have I may have a number of vendors with their own details. The way I have the form setup is to have a ListBox with all the computers listed and when you click on the computer name, it shows the current list of vendors, allowing you to add them as well. Each computer is assigned a unique identifier, but there's no direct way of associating the unique identifier with the row in the ListBox so that I can then cross-reference the vendors by the computer id.
How do you all work around such a problem?
Oh, I should add that sometimes a sortable control is used (where the user can click and sort in the interface, not manually sorted via code) and I'd need to maintain any associations. |