| 5533 | | newBPItem.SubItems(4).Text = FormatNumber(BP.MELevel, 0) |
| 5534 | | newBPItem.SubItems(5).Text = FormatNumber(BP.PELevel, 0) |
| 5535 | | Select Case BP.BPType |
| 5536 | | Case BPType.Unknown ' Undetermined |
| 5537 | | newBPItem.SubItems(1).Text = LocationName |
| 5538 | | newBPItem.SubItems(2).Text = BP.LocationDetails |
| 5539 | | newBPItem.SubItems(6).Text = "Unknown" |
| 5540 | | newBPItem.SubItems(6).Tag = BP.Runs |
| 5541 | | newBPItem.BackColor = Drawing.Color.LightGray |
| 5542 | | Case BPType.BPO ' BPO |
| 5543 | | newBPItem.SubItems(1).Text = LocationName |
| 5544 | | newBPItem.SubItems(2).Text = BP.LocationDetails |
| 5545 | | newBPItem.SubItems(6).Text = "BPO" |
| 5546 | | newBPItem.SubItems(6).Tag = 1000000 |
| 5547 | | newBPItem.BackColor = Drawing.Color.LightGreen |
| 5548 | | Case BPType.BPC ' BPC |
| 5549 | | newBPItem.SubItems(1).Text = LocationName |
| 5550 | | newBPItem.SubItems(2).Text = BP.LocationDetails |
| 5551 | | newBPItem.SubItems(6).Text = FormatNumber(BP.Runs, 0) |
| 5552 | | newBPItem.SubItems(6).Tag = BP.Runs |
| 5553 | | newBPItem.BackColor = Drawing.Color.LightSteelBlue |
| 5554 | | Case BPType.User |
| 5555 | | newBPItem.SubItems(1).Text = owner & "'s Secret BP Stash" |
| 5556 | | newBPItem.SubItems(2).Text = owner & "'s Secret BP Stash" |
| 5557 | | newBPItem.SubItems(6).Text = "BPO" |
| 5558 | | newBPItem.SubItems(6).Tag = 1000000 |
| 5559 | | newBPItem.BackColor = Drawing.Color.Yellow |
| 5560 | | End Select |
| 5561 | | newBPItem.SubItems(7).Text = [Enum].GetName(GetType(BPStatus), BP.Status) |
| 5562 | | newBPItem.SubItems(7).Tag = BP.Status |
| 5563 | | Select Case BP.Status |
| 5564 | | Case BPStatus.Missing |
| 5565 | | newBPItem.BackColor = Drawing.Color.LightCoral |
| 5566 | | Case BPStatus.Exhausted |
| 5567 | | newBPItem.BackColor = Drawing.Color.Orange |
| 5568 | | End Select |
| | 5532 | Call UpdateOwnerBPItem(owner, LocationName, BP, newBPItem) |
| | 5542 | End Sub |
| | 5543 | Private Sub UpdateOwnerBPItem(ByVal Owner As String, ByVal LocationName As String, ByVal BP As BlueprintAsset, ByVal newBPItem As ContainerListViewItem) |
| | 5544 | newBPItem.SubItems(4).Text = FormatNumber(BP.MELevel, 0) |
| | 5545 | newBPItem.SubItems(5).Text = FormatNumber(BP.PELevel, 0) |
| | 5546 | Select Case BP.BPType |
| | 5547 | Case BPType.Unknown ' Undetermined |
| | 5548 | newBPItem.SubItems(1).Text = LocationName |
| | 5549 | newBPItem.SubItems(2).Text = BP.LocationDetails |
| | 5550 | newBPItem.SubItems(6).Text = "Unknown" |
| | 5551 | newBPItem.SubItems(6).Tag = BP.Runs |
| | 5552 | newBPItem.BackColor = Drawing.Color.LightGray |
| | 5553 | Case BPType.BPO ' BPO |
| | 5554 | newBPItem.SubItems(1).Text = LocationName |
| | 5555 | newBPItem.SubItems(2).Text = BP.LocationDetails |
| | 5556 | newBPItem.SubItems(6).Text = "BPO" |
| | 5557 | newBPItem.SubItems(6).Tag = 1000000 |
| | 5558 | newBPItem.BackColor = Drawing.Color.LightGreen |
| | 5559 | Case BPType.BPC ' BPC |
| | 5560 | newBPItem.SubItems(1).Text = LocationName |
| | 5561 | newBPItem.SubItems(2).Text = BP.LocationDetails |
| | 5562 | newBPItem.SubItems(6).Text = FormatNumber(BP.Runs, 0) |
| | 5563 | newBPItem.SubItems(6).Tag = BP.Runs |
| | 5564 | newBPItem.BackColor = Drawing.Color.LightSteelBlue |
| | 5565 | Case BPType.User |
| | 5566 | newBPItem.SubItems(1).Text = Owner & "'s Secret BP Stash" |
| | 5567 | newBPItem.SubItems(2).Text = Owner & "'s Secret BP Stash" |
| | 5568 | newBPItem.SubItems(6).Text = "BPO" |
| | 5569 | newBPItem.SubItems(6).Tag = 1000000 |
| | 5570 | newBPItem.BackColor = Drawing.Color.Yellow |
| | 5571 | End Select |
| | 5572 | newBPItem.SubItems(7).Text = [Enum].GetName(GetType(BPStatus), BP.Status) |
| | 5573 | newBPItem.SubItems(7).Tag = BP.Status |
| | 5574 | Select Case BP.Status |
| | 5575 | Case BPStatus.Missing |
| | 5576 | newBPItem.BackColor = Drawing.Color.LightCoral |
| | 5577 | Case BPStatus.Exhausted |
| | 5578 | newBPItem.BackColor = Drawing.Color.Orange |
| | 5579 | End Select |
| 5803 | | Call GetAssetFromNode(item, categories, groups, types, Assets, locationID, flagname, selPilot, IsCorp) |
| | 5805 | Call GetAssetFromNode(item, categories, groups, types, Assets, locationID, flagName, selPilot, IsCorp) |
| 6013 | | Call Me.UpdateBPList() |
| | 6016 | ' Update the list using the details |
| | 6017 | Dim BP As New BlueprintAsset |
| | 6018 | Dim locationName As String = "" |
| | 6019 | For Each selitem As ContainerListViewItem In clvBlueprints.SelectedItems |
| | 6020 | BP = PlugInData.BlueprintAssets(BPForm.OwnerName).Item(selitem.Tag.ToString) |
| | 6021 | LocationName = Me.GetLocationNameFromID(BP.LocationID) |
| | 6022 | Call Me.UpdateOwnerBPItem(BPForm.OwnerName, locationName, BP, selitem) |
| | 6023 | Next |
| 6035 | | Dim assetID As String = CStr(clvBlueprints.SelectedItems(0).Tag) |
| 6036 | | Dim BPOwner As String = cboOwner.SelectedItem.ToString |
| 6037 | | If PlugInData.BlueprintAssets(BPOwner).ContainsKey(assetID) = True Then |
| 6038 | | PlugInData.BlueprintAssets(BPOwner).Remove(assetID) |
| 6039 | | Call Me.UpdateBPList() |
| | 6045 | If clvBlueprints.SelectedItems.Count > 0 Then |
| | 6046 | Dim rBP As New ContainerListViewItem |
| | 6047 | Dim cIDX As Integer = clvBlueprints.SelectedItems.Count - 1 |
| | 6048 | Do |
| | 6049 | rBP = clvBlueprints.SelectedItems(cIDX) |
| | 6050 | Dim assetID As String = CStr(rBP.Tag) |
| | 6051 | Dim BPOwner As String = cboOwner.SelectedItem.ToString |
| | 6052 | If PlugInData.BlueprintAssets(BPOwner).ContainsKey(assetID) = True Then |
| | 6053 | PlugInData.BlueprintAssets(BPOwner).Remove(assetID) |
| | 6054 | clvBlueprints.Items.Remove(rBP) |
| | 6055 | cIDX -= 1 |
| | 6056 | End If |
| | 6057 | Loop Until cIDX = -1 |
| | 6058 | 'Call Me.UpdateBPList() |