In my project there is an UI which contains a combobox and the combobox will list some communication protocol, such as TCP/IP, FTP and so on
I want to use an enum to present the communication protocols, maybe like this:
public enum CommuProtocol
{
TCPIP = 0,
FTP,
MPI,
Other
}
so, how to bind the enum value to the text in combobox. For example, from the text selected in combobox I can easily know the corresponding enum value and vice versa. And I hope that will be easy to be extended in the future.
The text maybe not the same with the enum value, etc, TCP/IP vs TCPIP...
Thanks!