Ejemplo n.º 1
0
        public static Dictionary <int, AchievementInfo> LoadAchievementInfoDB()
        {
            Dictionary <int, AchievementInfo> dictionary = new Dictionary <int, AchievementInfo>();

            using (ProduceBussiness produceBussiness = new ProduceBussiness())
            {
                foreach (AchievementInfo achievementInfo in produceBussiness.GetALlAchievement())
                {
                    if (!dictionary.ContainsKey(achievementInfo.ID))
                    {
                        dictionary.Add(achievementInfo.ID, achievementInfo);
                    }
                }
            }
            return(dictionary);
        }
Ejemplo n.º 2
0
        public static Dictionary <int, AchievementInfo> LoadAchievementInfoDB()
        {
            Dictionary <int, AchievementInfo> list = new Dictionary <int, AchievementInfo>();

            using (ProduceBussiness db = new ProduceBussiness())
            {
                AchievementInfo[] infos = db.GetALlAchievement();
                AchievementInfo[] array = infos;
                for (int i = 0; i < array.Length; i++)
                {
                    AchievementInfo info = array[i];
                    if (!list.ContainsKey(info.ID))
                    {
                        list.Add(info.ID, info);
                    }
                }
            }
            return(list);
        }
Ejemplo n.º 3
0
        public static Dictionary <int, AchievementInfo> LoadAchievementInfoDB()
        {
            Dictionary <int, AchievementInfo> dictionary = new Dictionary <int, AchievementInfo>();

            using (ProduceBussiness produceBussiness = new ProduceBussiness())
            {
                AchievementInfo[] aLlAchievement = produceBussiness.GetALlAchievement();
                AchievementInfo[] array          = aLlAchievement;
                for (int i = 0; i < array.Length; i++)
                {
                    AchievementInfo achievementInfo = array[i];
                    if (!dictionary.ContainsKey(achievementInfo.ID))
                    {
                        dictionary.Add(achievementInfo.ID, achievementInfo);
                    }
                }
            }
            return(dictionary);
        }