private static bool Load(Dictionary <int, TotemInfo> totem) { using (PlayerBussiness playerBussiness = new PlayerBussiness()) { foreach (TotemInfo totemInfo in playerBussiness.GetAllTotem()) { if (!totem.ContainsKey(totemInfo.ID)) { totem.Add(totemInfo.ID, totemInfo); } } } return(true); }
private static bool Load(Dictionary <int, TotemInfo> consortiaLevel) { using (PlayerBussiness playerBussiness = new PlayerBussiness()) { TotemInfo[] allTotem = playerBussiness.GetAllTotem(); TotemInfo[] array = allTotem; for (int i = 0; i < array.Length; i++) { TotemInfo totemInfo = array[i]; if (!consortiaLevel.ContainsKey(totemInfo.ID)) { consortiaLevel.Add(totemInfo.ID, totemInfo); } } } return(true); }