public DesignerHost(ServiceContainer parentServices)
{
this.parentServices = parentServices;
container = new DesignContainer (this);
referenceManager = new WebFormReferenceManager (this);
//register services
parentServices.AddService (typeof (IDesignerHost), this);
parentServices.AddService (typeof (IComponentChangeService), container);
parentServices.AddService (typeof (IWebFormReferenceManager), referenceManager);
}