public virtual void AddPriceTag(PriceTagSettings item) { if (PriceTags.Contains(item)) { return; } item.Settings = this; PriceTags.Add(item); }
public void AddParserSettings(ExtractorSettings parserSettings) { if (PriceTags == null) { PriceTags = new List <string>(); } if (UseParserSettings) { foreach (var priceHtmlPath in parserSettings.PriceHtmlPath) { PriceTags.Add(priceHtmlPath.Split('.').Last()); } PriceTags.Add(parserSettings.DiscountHtmlPath.Split('.').Last()); } }