public void OnBotStartedEventHandler(ISession session, StatisticsAggregator stat)
        {
            this.currentSession = session;

            session.EventDispatcher.EventReceived += HandleBotEvent;
            stat.GetCurrent().DirtyEvent += OnPlayerStatisticChanged;
            this.currentSession = session;
            this.botMap.Session = session;
            this.playerStats    = stat;
            this.ctrPokemonInventory.Session     = session;
            this.ctrlItemControl.Session         = session;
            this.ctrlSniper.Session              = session;
            this.ctrlEggsControl.Session         = session;
            this.datacontext.PokemonList.Session = session;
            botMap.SetDefaultPosition(session.Settings.DefaultLatitude, session.Settings.DefaultLongitude);
        }
Esempio n. 2
0
        public void OnBotStartedEventHandler(ISession session, StatisticsAggregator stat)
        {
            currentSession = session;

            session.EventDispatcher.EventReceived += HandleBotEvent;
            stat.GetCurrent().DirtyEvent += OnPlayerStatisticChanged;
            currentSession = session;
            botMap.Session = session;
            playerStats    = stat;
            ctrPokemonInventory.Session     = session;
            ctrlItemControl.Session         = session;
            ctrlSniper.Session              = session;
            ctrlEggsControl.Session         = session;
            datacontext.PokemonList.Session = session;
            botMap.SetDefaultPosition(session.Settings.DefaultLatitude, session.Settings.DefaultLongitude);
            var accountManager = TinyIoCContainer.Current.Resolve <MultiAccountManager>();

            gridAccounts.ItemsSource = accountManager.Accounts;
        }