Changed form title count pokemon

redfuegolight [2016-07-28 17:21:24]
Changed form title count pokemon

Form title now count the current pokemon catched and the maximum pokemon space
Filename
PokemonGo/RocketAPI/Window/PokeUi.cs
diff --git a/PokemonGo/RocketAPI/Window/PokeUi.cs b/PokemonGo/RocketAPI/Window/PokeUi.cs
index 1975c4f..d46dd2d 100644
--- a/PokemonGo/RocketAPI/Window/PokeUi.cs
+++ b/PokemonGo/RocketAPI/Window/PokeUi.cs
@@ -49,6 +49,7 @@ namespace PokemonGo.RocketAPI.Window
                 }
                 //
                 await client.SetServer();
+                var profile = await client.GetProfile();
                 var inventory = await client.GetInventory();
                 var pokemons =
                     inventory.InventoryDelta.InventoryItems
@@ -96,8 +97,8 @@ namespace PokemonGo.RocketAPI.Window


                     this.listView1.Items.Add(listViewItem);
-
-
+		    this.Text = "PokeUi " + countpkmn + "/" + profile.Profile.PokeStorage;
+                    countpkmn++;
                 }
 				EnabledButton(true);

@@ -306,4 +307,4 @@ namespace PokemonGo.RocketAPI.Window
 			catch (Exception ex) { await PowerUp(pokemon); }
 		}
 	}
-}
\ No newline at end of file
+}
You may download the files in Public Git.