コード例 #1
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;
        }
コード例 #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;
        }
コード例 #3
0
 internal ListItemCollection(ListItemCollectionControl control)
 {
     _control = control;
 }
コード例 #4
0
 internal ListItemCollection(ListItemCollectionControl control)
 {
     _control = control;
 }