Changeset 1260

Show
Ignore:
Timestamp:
1/20/2010 4:59:30 AM (8 weeks ago)
Author:
vessper
Message:

20/01/2010


- Prism: Fix for corp hangar mode not calculating hangar prices when using standard stations

Location:
trunk/EveHQ.Prism
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/EveHQ.Prism/Forms/frmPrism.vb

    r1255 r1260  
    836836                    Dim locList As XmlNodeList 
    837837                    Dim loc As XmlNode 
    838                     Dim AssetIsInHanger As Boolean = False 
    839                     Dim hangarPrice As Double = 0 
    840838                    locList = assetXML.SelectNodes("/eveapi/result/rowset/row") 
    841839                    If locList.Count > 0 Then 
    842840                        Dim linePrice As Double = 0 
    843841                        Dim containerPrice As Double = 0 
     842                        Dim AssetIsInHanger As Boolean = False 
     843                        Dim hangarPrice As Double = 0 
    844844                        For Each loc In locList 
    845845                            ' Check if the location is already listed 
     
    10201020                            newAsset.SubItems(AssetColumn.Value).Text = FormatNumber(linePrice, 2, TriState.UseDefault, TriState.UseDefault, TriState.UseDefault) 
    10211021 
    1022                             ' Update hangar price if applicable 
    1023                             If AssetIsInHanger = True Then 
    1024                                 hangarPrice = CDbl(newAsset.ParentItem.SubItems(AssetColumn.Value).Text) 
    1025                                 newAsset.ParentItem.SubItems(AssetColumn.Value).Text = FormatNumber(hangarPrice + linePrice, 2) 
    1026                             End If 
    1027  
    10281022                            ' Add the asset to the list of assets 
    10291023                            Dim newAssetList As New AssetItem 
     
    10441038                            If loc.HasChildNodes = True Then 
    10451039                                Call Me.PopulateAssetNode(newAsset, loc, owner, locNode.Text, selPilot) 
     1040                            End If 
     1041 
     1042                            ' Update hangar price if applicable 
     1043                            If AssetIsInHanger = True Then 
     1044                                hangarPrice = CDbl(newAsset.ParentItem.SubItems(AssetColumn.Value).Text) 
     1045                                newAsset.ParentItem.SubItems(AssetColumn.Value).Text = FormatNumber(hangarPrice + CDbl(newAsset.SubItems(AssetColumn.Value).Text), 2) 
    10461046                            End If 
    10471047                        Next 
  • trunk/EveHQ.Prism/My Project/AssemblyInfo.vb

    r1257 r1260  
    3232' <Assembly: AssemblyVersion("1.0.*")>  
    3333 
    34 <Assembly: AssemblyVersion("1.14.0.1257")>  
    35 <Assembly: AssemblyFileVersion("1.14.0.1257")>  
     34<Assembly: AssemblyVersion("1.14.0.1260")>  
     35<Assembly: AssemblyFileVersion("1.14.0.1260")>