Fix for issue #80
This commit is contained in:
@@ -403,9 +403,19 @@ Public Class frmGameManager
|
|||||||
oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue)
|
oList.Sort(AddressOf mgrCommon.CompareByListBoxItemByValue)
|
||||||
|
|
||||||
lstGames.BeginUpdate()
|
lstGames.BeginUpdate()
|
||||||
lstGames.DataSource = oList
|
|
||||||
lstGames.ValueMember = "Key"
|
lstGames.ValueMember = "Key"
|
||||||
lstGames.DisplayMember = "Value"
|
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.EndUpdate()
|
||||||
lstGames.ClearSelected()
|
lstGames.ClearSelected()
|
||||||
IsLoading = False
|
IsLoading = False
|
||||||
|
|||||||
Reference in New Issue
Block a user