Exemplo n.º 1
0
        public override void Run()
        {
            sw = new Stopwatch();
            sw.Start();
            bool modulesDisabled = false;

            while (working)
            {
                GetData.WhoAmI();

                modulesDisabled = ManageModules(modulesDisabled);

                WindowsManager.menu.Update();



                if (sw.ElapsedMilliseconds > 60000) // every 1 min reset all spotted creatures list
                {
                    GetData.ResetAllSpottedCreatureList();
                    GetData.ActualizeAllSpottedCreaturesList();
                    sw.Restart();
                }



                Thread.Sleep(1000 * refreshFrequency);
                WindowsManager.walkerWindow.Update();
            }
            finished = true;
        }