Fix for issue #80

This commit is contained in:
Michael J. Seiferling
2017-06-12 10:31:10 -06:00
parent be8cb66136
commit e701d67d79
+11 -1
View File
@@ -403,9 +403,19 @@ Public Class frmGameManager
oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue)
lstGames.BeginUpdate()
lstGames.DataSource = oList
lstGames.ValueMember = "Key"
lstGames.DisplayMember = "Value"
'Due to a control bug with Mono we need to fill the list box differently on Linux
If mgrCommon.IsUnix Then
lstGames.Items.Clear()
For Each kp As KeyValuePair(Of String, String) In oList
lstGames.Items.Add(kp)
Next
Else
lstGames.DataSource = oList
End If
lstGames.EndUpdate()
lstGames.ClearSelected()
IsLoading = False