public override void Initialize(IComponent component)
{
Debug.Assert(component != null);
// Validate the parameter reference
if (component == null) throw new ArgumentNullException("component");
// Let base class do standard stuff
base.Initialize(component);
// Cast to correct type
_gallery = (KryptonGallery)component;
// We need to know when we are being removed
_changeService = (IComponentChangeService)GetService(typeof(IComponentChangeService));
_changeService.ComponentRemoving += new ComponentEventHandler(OnComponentRemoving);
}