internal IDesigner GetDesigner(IComponent component) { if (GetComponent (component.Site.Name) == null) return null; //throw new ArgumentException ("That component is not in the container", "component"); return designers[component] as IDesigner; }
public IDesigner GetDesigner(IComponent component) { if (component == null) { throw new ArgumentNullException("component"); } else { return(container.GetDesigner(component)); } }