Ejemplo n.º 1
0
        private void Loop()
        {
            User user = UserManager.GetCurrentUser(true);

            List <Friend> friend = FightManager.GetAttackAbleFriends(user.Level);

            if (friend != null && friend.Count > 0)
            {
                onePing();
                StopLoop();
                MessageBox.Show(string.Format("有{0}个可攻击好友", friend.Count));
            }
            else
            {
                count++;
                SetProgressBarStep(count);
            }
        }