Example #1
0
        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);
        }
Example #2
0
 internal ToolButtonCollection(ToolCollectionControl Control)
 {
     _control = Control;
 }