public bool SetParseInfo(WebSiteParser parser) { if (Parser == null) { Parser = parser; return(true); } return(false); }
public bool AddSite(string name, WebSiteSettings settings, WebSiteParser parser) { var site = new WebSiteDataContainer(name); if (site.SetSettings(settings) && site.SetParseInfo(parser) && !Contains(name)) { _containers.Add(site); return(true); } return(false); }