protected void OnComponentRename(object component, string oldName, string newName) { host.RootDocument.RenameControl (oldName, newName); if (ComponentRename != null) ComponentRename (this, new ComponentRenameEventArgs (component, oldName, newName)); }