public static void RefreshItemMarketData(string itemName)
 {
     foreach (
         var item in
         AllItems.Where(p => string.Equals(p.Name, itemName, StringComparison.InvariantCultureIgnoreCase)).Distinct())
     {
         DomainObjectRepositories.ItemRepository.Session.Refresh(item);
         ItemMetaDataProvider.PromptRecalc(item);
     }
 }
        public static void RefreshItemMarketData(IEnumerable <string> itemNames)
        {
            var items =
                AllItems.Where(
                    p => itemNames.Any(z => string.Equals(p.Name, z, StringComparison.InvariantCultureIgnoreCase))).ToArray();

            foreach (var i in items)
            {
                DomainObjectRepositories.ItemRepository.Session.Refresh(i);
            }
            ItemMetaDataProvider.PromptRecalc(items);
        }