Changeset 1240
- Timestamp:
- 1/17/2010 3:03:27 PM (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/EveHQ/Forms/frmPilot.vb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EveHQ/Forms/frmPilot.vb
r1077 r1240 1026 1026 1027 1027 #Region "Standings Routines" 1028 1028 1029 1029 Private Sub btnGetStandings_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetStandings.Click 1030 1030 ' First, let's check out the cache location based on the value of the settings … … 1114 1114 1115 1115 If cacheFileList.Count > 0 Then 1116 Dim lastWrites As Dictionary(Of String, Date) = New Dictionary(Of String, Date) 1117 1116 1118 Cursor = Cursors.WaitCursor 1117 1119 Dim StandingsDecoder As New EveHQ.Core.StandingsCacheDecoder … … 1120 1122 MyStandings = StandingsDecoder.FetchStandings(cachefile) 1121 1123 If MyStandings.OwnerID IsNot Nothing Then 1124 Dim last As Date = File.GetLastWriteTime(cachefile) 1122 1125 If EveHQ.Core.HQ.AllStandings.ContainsKey(MyStandings.OwnerID) = False Then 1123 1126 EveHQ.Core.HQ.AllStandings.Add(MyStandings.OwnerID, MyStandings) 1127 lastWrites.Add(MyStandings.OwnerID, last) 1128 Else 1129 If last > lastWrites(MyStandings.OwnerID) Then 1130 EveHQ.Core.HQ.AllStandings.Remove(MyStandings.OwnerID) 1131 EveHQ.Core.HQ.AllStandings.Add(MyStandings.OwnerID, MyStandings) 1132 lastWrites(MyStandings.OwnerID) = last 1133 End If 1124 1134 End If 1125 1135 End If
