Guest User

Untitled

a guest
Feb 20th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.13 KB | None | 0 0
  1.     Public Sub getAssests()
  2.         If Not importantAssetsIDS.Keys.Count > 0 Then
  3.             With importantAssetsIDS
  4.                 .Add(14343, "Silo")
  5.                 .Add(27897, "Jump Bridge")
  6.                 .Add(12237, "Ship Maintenance Array")
  7.             End With
  8.         End If
  9.         Dim list As New List(Of Long)
  10.  
  11.         Form1.tools.printVerboseLine("Starting to get asset data from api")
  12.         assestsListAPI.UpdateData(EveApiBase.UpdateCharaceristics.OnlineOnly)
  13.         Form1.tools.printVerboseLine("Asset data has been retrieved")
  14.  
  15.         For Each item In assestsListAPI.Data
  16.             If importantAssetsIDS.ContainsKey(item.TypeID) Then
  17.                 importantAssets.Add(item.ItemID, item)
  18.                 list.Add(item.ItemID)
  19.             End If
  20.             assetList.Add(item.ItemID, item)
  21.         Next
  22.  
  23.         getLocations(list)
  24.     End Sub
  25.  
  26.     Public Sub getLocations(ByVal list As List(Of Long))
  27.         locationAPI.Data.Clear()
  28.         locationAPI.AuthenticationData.LocationIDs = list
  29.         locationAPI.UpdateData(EveApiBase.UpdateCharaceristics.OnlineOnly)'<- is where it breaks
  30.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment