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;
        }
Exemple #2
0
        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;
 }
Exemple #4
0
 internal ListItemCollection(ListItemCollectionControl control)
 {
     _control = control;
 }