-implementato a capo quando viene inserito un testo oltre al valore della combobox
This commit is contained in:
@@ -169,12 +169,18 @@ Public Class InputExpanderVM
|
||||
Dim tmpComboSelectedIndex As Integer = ComboSelectedIndex
|
||||
If m_ComboSelectedIndex >= 0 AndAlso tmpInfoList.Count > 0 Then
|
||||
' se la info è presente la aggiungo alla textbox per modificarla
|
||||
m_TextBox &= (tmpInfoList(m_ComboSelectedIndex).sKey & "=" & m_tmpInfoList(m_ComboSelectedIndex).sValour).Trim() & vbCrLf
|
||||
If m_TextBox IsNot String.Empty Then
|
||||
m_TextBox &= vbCrLf
|
||||
m_TextBox &= (tmpInfoList(m_ComboSelectedIndex).sKey & "=" & m_tmpInfoList(m_ComboSelectedIndex).sValour).Trim()
|
||||
ElseIf m_TextBox Is String.Empty Then
|
||||
m_TextBox &= (tmpInfoList(m_ComboSelectedIndex).sKey & "=" & m_tmpInfoList(m_ComboSelectedIndex).sValour).Trim() & vbCrLf
|
||||
End If
|
||||
ComboVisibility = Visibility.Collapsed
|
||||
ComboItemsList.Remove((tmpInfoList(m_ComboSelectedIndex).sKey & "=" & m_tmpInfoList(m_ComboSelectedIndex).sValour).Trim())
|
||||
tmpInfoList.Remove(tmpInfoList(tmpComboSelectedIndex))
|
||||
End If
|
||||
m_ComboSelectedIndex = -1
|
||||
If ComboItemsList.Count <= 0 Then ShowInfoItemVisibility = Visibility.Collapsed
|
||||
OnPropertyChanged("ComboSelectedIndex")
|
||||
OnPropertyChanged("ComboItemsList")
|
||||
OnPropertyChanged("TextBox")
|
||||
|
||||
Reference in New Issue
Block a user