Exemplo n.º 1
0
 public SiteImpl(IComponent comp,string name,DesignerHostImpl host)
 {
     if(comp==null)
     {
         throw new ArgumentException("comp");
     }
     if(host==null)
     {
         throw new ArgumentException("host");
     }
     if(name==null || name.Trim().Length==0)
     {
         throw new ArgumentException("name");
     }
     component=comp;
     this.host=host;
     this.name=name;
     // create a dictionary service for this site
     dictionaryService = new DictionaryServiceImpl();
 }
Exemplo n.º 2
0
 public SiteImpl(IComponent comp, string name, DesignerHostImpl host)
 {
     if (comp == null)
     {
         throw new ArgumentException("comp");
     }
     if (host == null)
     {
         throw new ArgumentException("host");
     }
     if (name == null || name.Trim().Length == 0)
     {
         throw new ArgumentException("name");
     }
     component = comp;
     this.host = host;
     this.name = name;
     // create a dictionary service for this site
     dictionaryService = new DictionaryServiceImpl();
 }