Imports mRemoteNG.Tools.LocalizedAttributes Namespace Connection Namespace Protocol Public Class Converter Public Shared Function ProtocolToString(ByVal protocol As Protocols) As String Return protocol.ToString() End Function Public Shared Function StringToProtocol(ByVal protocol As String) As Protocols Try Return [Enum].Parse(GetType(Protocols), protocol, True) Catch ex As Exception Return Protocols.RDP End Try End Function End Class Public Enum Protocols _ RDP = 0 _ VNC = 1 _ SSH1 = 2 _ SSH2 = 3 _ Telnet = 4 _ Rlogin = 5 _ RAW = 6 _ HTTP = 7 _ HTTPS = 8 _ ICA = 9 _ IntApp = 20 End Enum End Namespace End Namespace