public void Execute(bool refreshData = true)
        {
            pictureBoxTeam.Image         = null;
            pictureBoxPlayerAvatar.Image = null;
            pictureBoxBuddyPokemon.Image = null;
            foreach (ListViewItem element in listView.Items)
            {
                element.SubItems[2].Text = "";
            }

            var client = Logic.Logic.objClient;

            if (client != null && client.ReadyToUse)
            {
                if (refreshData)
                {
                    profile = client.Player.GetPlayer();
                    RandomHelper.RandomSleep(300, 400);
                    var playerStats = client.Inventory.GetPlayerStats();
                    stats = playerStats.First();
                }
                updatePlayerImages();
                updatePlayerInfoLabels();
            }
            labelPokemons.Text  = "" + Logic.Functions.Setout.pokemonCatchCount;
            labelPokestops.Text = "" + Logic.Functions.Setout.pokeStopFarmedCount;
            labelTimeLeft.Text  = "" + Logic.Functions.Setout.timeLeftToNextLevel;
        }
Exemple #2
0
        public void Execute(bool refreshData = true)
        {
            pictureBoxTeam.Image         = null;
            pictureBoxPlayerAvatar.Image = null;
            pictureBoxBuddyPokemon.Image = null;
            foreach (ListViewItem element in listView.Items)
            {
                element.SubItems[2].Text = "";
            }

            var client = Logic.Logic.objClient;

            if (client != null && client.ReadyToUse)
            {
                if (refreshData)
                {
                    profile = client.Player.GetPlayer().Result;
                    RandomHelper.RandomSleep(300, 400);
                    var playerStats = client.Inventory.GetPlayerStats().Result;
                    stats = playerStats.First();
                }
                updatePlayerImages();
                updatePlayerInfoLabels();
            }
        }