Ejemplo n.º 1
0
 private static bool Load(Dictionary <int, TotemHonorTemplateInfo> TotemHonorTemplate)
 {
     using (PlayerBussiness playerBussiness = new PlayerBussiness())
     {
         foreach (TotemHonorTemplateInfo honorTemplateInfo in playerBussiness.GetAllTotemHonorTemplate())
         {
             if (!TotemHonorTemplate.ContainsKey(honorTemplateInfo.ID))
             {
                 TotemHonorTemplate.Add(honorTemplateInfo.ID, honorTemplateInfo);
             }
         }
     }
     return(true);
 }
Ejemplo n.º 2
0
 private static bool Load(Dictionary <int, TotemHonorTemplateInfo> TotemHonorTemplate)
 {
     using (PlayerBussiness playerBussiness = new PlayerBussiness())
     {
         TotemHonorTemplateInfo[] allTotemHonorTemplate = playerBussiness.GetAllTotemHonorTemplate();
         TotemHonorTemplateInfo[] array = allTotemHonorTemplate;
         for (int i = 0; i < array.Length; i++)
         {
             TotemHonorTemplateInfo totemHonorTemplateInfo = array[i];
             if (!TotemHonorTemplate.ContainsKey(totemHonorTemplateInfo.ID))
             {
                 TotemHonorTemplate.Add(totemHonorTemplateInfo.ID, totemHonorTemplateInfo);
             }
         }
     }
     return(true);
 }