Imports System.ComponentModel Imports System.Drawing.Design Imports System.Globalization Module ModuleFinalIndexProperties Public Class FinalIndexProperties <[ReadOnly](True)> Public Property GUID As Integer <[ReadOnly](True)> Public Property ConnectionId As Integer Public Property Description As String Public Property Active As Boolean ''' ''' Eigenschaft, die den SQL Editor anzeigt ''' Public Property SQLCommand As SQLValue Public Property StaticValue As String ''' ''' Eigenschaft, die eine Liste von Indicies anzeigt ''' Public Property IndexName As String Public Property VectorIndex As Boolean ''' ''' Diese Eigenschaft enthält die auswählbaren Indicies, die für das Control verfügbar sind. Wird nicht direkt angezeigt. ''' Public Property Indicies As List(Of String) Public Class IndexListConverter Inherits TypeConverter Public Overrides Function GetStandardValuesSupported(context As ITypeDescriptorContext) As Boolean Return True End Function Public Overrides Function GetStandardValues(context As ITypeDescriptorContext) As StandardValuesCollection Dim indexList = DirectCast(context.Instance, FinalIndexProperties).Indicies Dim values As New StandardValuesCollection(indexList) Return values End Function Public Overrides Function ConvertTo(context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object If IsNothing(value) Then Return "" Else Return value.ToString() End If End Function End Class End Class End Module