Changes for issue #131

This commit is contained in:
MikeMaximus
2018-06-15 16:02:31 -06:00
parent 7eab3b8841
commit 9b9d3f9125
3 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -847,14 +847,14 @@ Public Class frmGameManager
End Sub
Private Sub FillTagsbyID(ByVal sID As String)
Dim hshTags As Hashtable
Dim slTags As SortedList
Dim oTag As clsTag
Dim sTags As String = String.Empty
Dim cTrim() As Char = {",", " "}
hshTags = mgrGameTags.GetTagsByGame(sID)
slTags = mgrGameTags.GetTagsByGame(sID)
For Each de As DictionaryEntry In hshTags
For Each de As DictionaryEntry In slTags
oTag = DirectCast(de.Value, clsTag)
sTags &= "#" & oTag.Name & ", "
Next
+5 -5
View File
@@ -76,11 +76,11 @@
End Sub
Public Shared Function GetTagsByGame(ByVal sMonitorID As String) As Hashtable
Public Shared Function GetTagsByGame(ByVal sMonitorID As String) As SortedList
Dim oDatabase As New mgrSQLite(mgrSQLite.Database.Local)
Dim oData As DataSet
Dim sSQL As String
Dim hshList As New Hashtable
Dim slList As New SortedList
Dim hshParams As New Hashtable
Dim oTag As clsTag
@@ -94,10 +94,10 @@
oTag = New clsTag
oTag.ID = CStr(dr("TagID"))
oTag.Name = CStr(dr("Name"))
hshList.Add(oTag.Name, oTag)
slList.Add(oTag.Name, oTag)
Next
Return hshList
Return slList
End Function
Public Shared Function GetTagsByGameForExport(ByVal sMonitorID As String) As List(Of Tag)
@@ -108,7 +108,7 @@
Dim hshParams As New Hashtable
Dim oTag As Tag
sSQL = "SELECT TagID, tags.Name FROM gametags NATURAL JOIN tags WHERE MonitorID = @ID"
sSQL = "SELECT TagID, tags.Name FROM gametags NATURAL JOIN tags WHERE MonitorID = @ID ORDER BY tags.Name ASC"
hshParams.Add("ID", sMonitorID)
+2 -2
View File
@@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.1.2.*")>
<Assembly: AssemblyFileVersion("1.1.2.0")>
<Assembly: AssemblyVersion("1.1.3.*")>
<Assembly: AssemblyFileVersion("1.1.3.0")>
<Assembly: NeutralResourcesLanguageAttribute("en")>