public override void Initialize(IComponent component) { base.Initialize(component); // Record instance of control we're designing MyControl = (ToolCollectionControl)component; // Hook up events ISelectionService s = (ISelectionService)GetService(typeof(ISelectionService)); IComponentChangeService c = (IComponentChangeService)GetService(typeof(IComponentChangeService)); s.SelectionChanged += new EventHandler(OnSelectionChanged); c.ComponentRemoving += new ComponentEventHandler(OnComponentRemoving); }
internal ToolButtonCollection(ToolCollectionControl Control) { _control = Control; }