示例#1
0
 public bool SetSettings(WebSiteSettings settings)
 {
     if (Settings == null)
     {
         Settings = settings;
         return(true);
     }
     return(false);
 }
示例#2
0
        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);
        }