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