Example #1
0
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);

            // Store local our component
            m_oControl = component as WhidbeyTabControl;

            // Hook selection events
            m_oSelectionSvc = this.GetService(typeof(ISelectionService)) as ISelectionService;
            m_oSelectionSvc.SelectionChanged += new EventHandler(OnSelectionChanged);

            // Hook component add/remove/etc events
            m_oChangeSvc = this.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
            m_oChangeSvc.ComponentRemoving += new ComponentEventHandler(OnComponentRemoving);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="control">Parent control to send messages to.</param>
 internal WhidbeyTabCollection(WhidbeyTabControl control)
 {
     m_oControl = control;
 }