I have tried looking round for a solution to my problem but have failed to find one as it seems every one is a step or two ahead of my problem.
I am trying to select an item from it being checked from a checkboxlist rather than selecting an item from it being selected.
What I intend to do from knowing that is to make the resulting event that would fire off, after a button is clicked and the checked options are checked, to show text in a label off the checked items.
The program, based off the decorator pattern, would allow the user to choose from a set of 3/4 checkable options of which when a button is pressed will show text relating to those items in a label on the end of the base text. At the moment, all I have managed is to get it to do so on the selected item one at a time only similar to the first example.
For example, when an option called Monitor is checked it would show in the label:
You're getting a Computer and a monitor.
If there are multiple checked items such as Monitor and Keyboard then it would say:
You're getting a Computer and a monitor and a keyboard.