Example #1
0
 static public ShipCargoSpaceTypeEnum?ActiveShipSelectedCargoSpaceType(
     this WindowInventory WindowInventory) =>
 WindowInventory?.TreeEntryActiveShip()?.FromShipExtractSetCargoSpaceTypeAndTreeEntry()
 ?.Where(CargoTypeAndTreeEntry => WindowInventory?.SetLeftTreeEntrySelected()?.Contains(CargoTypeAndTreeEntry.Value) ?? false)
 ?.Select(CargoTypeAndTreeEntry => CargoTypeAndTreeEntry.Key)
 ?.CastToNullable()
 ?.FirstOrDefault();