public bool SetSettings(WebSiteSettings settings) { if (Settings == null) { Settings = settings; 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); }