Exemplo n.º 1
0
        public async Task CheckBossTimersAsync()
        {
            foreach (var boss in Bosses)
            {
                //boss.IsTimerEnabled = BossNotificationService.IsBossTimerEnabled(boss);
                boss.Show = await BossNotificationService.IsBossInRegionAsync(boss);
            }

            int j = Bosses.Count;

            for (int i = 0; i < j; i++)
            {
                if (Bosses[i].Show)
                {
                    Bosses.Move(i, 0);
                }
            }
            NotifyOfPropertyChange(() => Bosses);
        }