public void Dispose()
{
if (!this.disposed) {
//clean up the services we've registered
parentServices.RemoveService (typeof (IComponentChangeService));
parentServices.RemoveService (typeof (IDesignerHost));
//and the container
container.Dispose ();
disposed = true;
}
}