I've a struct called accounts (string account, int value), and a class called person with an arraylist of accounts (in C#).
I need the user to hit a button on the main window and have it bring up a listbox (or other control) with SOME of the person.accounts (based on some criteria, it will vary, don't want to bury my question in code when all I need is an example), have the listbox show both the account and the value (so the whole struct, not just the account number, like "10456786 $75.50"), have the user double click on one of the accounts in the listbox and have logic execute to change the value of person.account.value for that specific account (increment up or down, I have that logic, I just don't know how to connect them).
I've been wrestling with this for a week now, digging through all the books I've managed to scavenge up (new to WPF, teaching myself), and just can't make this work. I have the pieces, but not how to connect them.
It doesn't have to be Listbox, at this point I'm open to suggestions, I'm just at my wit's end on figuring out how to do this.
Thank you in advance for your patience and consideration.