neu
This commit is contained in:
@@ -10,17 +10,17 @@ Public Class MyComboBox
|
||||
Public Sub New()
|
||||
End Sub
|
||||
|
||||
Sub fillWithMyListItem(l As List(Of MyListItem), Optional firstEmpty As Boolean = False, Optional clearList As Boolean = True)
|
||||
Sub fillWithMyListItem(l As List(Of MyListItem), Optional firstEmpty As Boolean = False, Optional clearList As Boolean = True, Optional firstEmptyName As String = "")
|
||||
If clearList Then MyBase.Items.Clear()
|
||||
If firstEmpty Then
|
||||
Me.Items.Insert(0, New MyListItem("", ""))
|
||||
Me.Items.Insert(0, New MyListItem(firstEmptyName, ""))
|
||||
End If
|
||||
If l IsNot Nothing Then
|
||||
For Each i In l : MyBase.Items.Add(i) : Next
|
||||
End If
|
||||
End Sub
|
||||
Sub fillWithSQL(sqlstr As String, Optional showValueInText As Boolean = True, Optional conn As String = "SDL", Optional firstEmpty As Boolean = False, Optional clearList As Boolean = True)
|
||||
fillWithMyListItem((New SQL).loadCboBySqlWithListItem(sqlstr, showValueInText, conn), firstEmpty, clearList)
|
||||
Sub fillWithSQL(sqlstr As String, Optional showValueInText As Boolean = True, Optional conn As String = "SDL", Optional firstEmpty As Boolean = False, Optional clearList As Boolean = True, Optional firstEmptyName As String = "")
|
||||
fillWithMyListItem((New SQL).loadCboBySqlWithListItem(sqlstr, showValueInText, conn), firstEmpty, clearList, firstEmptyName)
|
||||
_TRANSLATE()
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user