I have an Enumeration whitch values I want to aliment to a Combobox.
Enum SortType
Id
FirstName
LastName
End Enum
I vant to associate to that enumeration some strings that I'll be able to set in the combobox. à la "Id", "First Name", "Last Name".
How should I proceed?
For advanced, I, eventually, should be able to internationalize that strings: ("Id", "Nom", "Prénom")
Actually, I have a List(Of String) = new List("Id", "First Name", "Last Name")
and associate that list index to a enum value. This is a little embarrassing, because when I need to add or remove some enum values I should re-associate the indexes.