My current set up has a class with only 2 variables currently (string type and int amount).
I override the ToString
to print both of those things together. In my form I instantiate different instances of this class and populate the combo box just fine, it prints my override.
My question is how do I determine which instance is being selected? I can use selecteditem to retrieve my tostring
override fine, but what if i want to alter the amount variable of a specific instance if its selected?
SelectedItem.Instance.VariableName
I imagine it would be something like this, I'm just not familiar with that syntax.