Skip to content

Commit

Permalink
anadido eliminaciOn de duplicidades en el xml de autocompletado
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisM000 committed Nov 16, 2012
1 parent 1a77448 commit 22a1b24
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Maps.NET/Maps.NET/Maps.NET/ClaseAspecto.vb
Expand Up @@ -350,13 +350,18 @@ Public Class AspectoFormulario
Catch
End Try
End Sub

Public Sub precargaAutocompletar()
Try
' Array of strings.
Dim autoArray() As String
autoArray = DirectCast(listaAutocompletar.ToArray(GetType(String)), String())

'Con .distinct.toarray eliminaos duplicidades
autoArray = autoArray.Distinct.ToArray
listaAutocompletar = New ArrayList(autoArray)
MySource.AddRange(autoArray)

Catch
End Try
End Sub
Expand Down Expand Up @@ -396,6 +401,8 @@ Public Class AspectoFormulario
myXmlTextWriter.WriteEndElement()
myXmlTextWriter.Flush()
myXmlTextWriter.Close()


Catch
End Try
End If
Expand Down

0 comments on commit 22a1b24

Please sign in to comment.