Fixed import bug caused by issue 13
This commit is contained in:
@@ -28,6 +28,12 @@
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
ReadOnly Property CompoundKey As String
|
||||||
|
Get
|
||||||
|
Return ProcessName & ":" & Name
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
ReadOnly Property CroppedName As String
|
ReadOnly Property CroppedName As String
|
||||||
Get
|
Get
|
||||||
If Name.Length > 40 Then
|
If Name.Length > 40 Then
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
For Each de As DictionaryEntry In ImportData
|
For Each de As DictionaryEntry In ImportData
|
||||||
oApp = DirectCast(de.Value, clsGame)
|
oApp = DirectCast(de.Value, clsGame)
|
||||||
oData = New KeyValuePair(Of String, String)(oApp.ProcessName, oApp.Name & " (" & oApp.TrueProcess & ")")
|
oData = New KeyValuePair(Of String, String)(oApp.CompoundKey, oApp.Name & " (" & oApp.TrueProcess & ")")
|
||||||
lstGames.Items.Add(oData)
|
lstGames.Items.Add(oData)
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ Public Class mgrMonitorList
|
|||||||
Dim oFromItem As clsGame
|
Dim oFromItem As clsGame
|
||||||
Dim oToItem As clsGame
|
Dim oToItem As clsGame
|
||||||
Dim iChanges As Integer
|
Dim iChanges As Integer
|
||||||
Dim sCompareKey As String
|
|
||||||
|
|
||||||
Cursor.Current = Cursors.WaitCursor
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
@@ -141,11 +140,10 @@ Public Class mgrMonitorList
|
|||||||
hshSyncItems = hshCompareFrom.Clone
|
hshSyncItems = hshCompareFrom.Clone
|
||||||
|
|
||||||
For Each oFromItem In hshCompareFrom.Values
|
For Each oFromItem In hshCompareFrom.Values
|
||||||
sCompareKey = oFromItem.ProcessName & ":" & oFromItem.Name
|
If hshCompareTo.Contains(oFromItem.CompoundKey) Then
|
||||||
If hshCompareTo.Contains(sCompareKey) Then
|
oToItem = DirectCast(hshCompareTo(oFromItem.CompoundKey), clsGame)
|
||||||
oToItem = DirectCast(hshCompareTo(sCompareKey), clsGame)
|
|
||||||
If oFromItem.SyncEquals(oToItem) Then
|
If oFromItem.SyncEquals(oToItem) Then
|
||||||
hshSyncItems.Remove(sCompareKey)
|
hshSyncItems.Remove(oFromItem.CompoundKey)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -173,11 +171,10 @@ Public Class mgrMonitorList
|
|||||||
hshDeleteItems = hshCompareTo.Clone
|
hshDeleteItems = hshCompareTo.Clone
|
||||||
|
|
||||||
For Each oToItem In hshCompareTo.Values
|
For Each oToItem In hshCompareTo.Values
|
||||||
sCompareKey = oToItem.ProcessName & ":" & oToItem.Name
|
If hshCompareFrom.Contains(oToItem.CompoundKey) Then
|
||||||
If hshCompareFrom.Contains(sCompareKey) Then
|
oFromItem = DirectCast(hshCompareFrom(oToItem.CompoundKey), clsGame)
|
||||||
oFromItem = DirectCast(hshCompareFrom(sCompareKey), clsGame)
|
|
||||||
If oToItem.MinimalEquals(oFromItem) Then
|
If oToItem.MinimalEquals(oFromItem) Then
|
||||||
hshDeleteItems.Remove(sCompareKey)
|
hshDeleteItems.Remove(oToItem.CompoundKey)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
@@ -199,7 +196,6 @@ Public Class mgrMonitorList
|
|||||||
Dim hshSyncItems As Hashtable
|
Dim hshSyncItems As Hashtable
|
||||||
Dim oFromItem As clsGame
|
Dim oFromItem As clsGame
|
||||||
Dim oToItem As clsGame
|
Dim oToItem As clsGame
|
||||||
Dim sCompareKey As String
|
|
||||||
|
|
||||||
Cursor.Current = Cursors.WaitCursor
|
Cursor.Current = Cursors.WaitCursor
|
||||||
|
|
||||||
@@ -210,11 +206,10 @@ Public Class mgrMonitorList
|
|||||||
hshSyncItems = hshCompareFrom.Clone
|
hshSyncItems = hshCompareFrom.Clone
|
||||||
|
|
||||||
For Each oFromItem In hshCompareFrom.Values
|
For Each oFromItem In hshCompareFrom.Values
|
||||||
sCompareKey = oFromItem.ProcessName & ":" & oFromItem.Name
|
If hshCompareTo.Contains(oFromItem.CompoundKey) Then
|
||||||
If hshCompareTo.Contains(sCompareKey) Then
|
oToItem = DirectCast(hshCompareTo(oFromItem.CompoundKey), clsGame)
|
||||||
oToItem = DirectCast(hshCompareTo(sCompareKey), clsGame)
|
|
||||||
If oFromItem.CoreEquals(oToItem) Then
|
If oFromItem.CoreEquals(oToItem) Then
|
||||||
hshSyncItems.Remove(sCompareKey)
|
hshSyncItems.Remove(oFromItem.CompoundKey)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|||||||
Reference in New Issue
Block a user