예제 #1
0
        public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            //Record instance of control we're designing
            Parent = (StatusList)component;

            //Hook up events
            ISelectionService       s = (ISelectionService)GetService(typeof(ISelectionService));
            IComponentChangeService c = (IComponentChangeService)GetService(typeof(IComponentChangeService));

            s.SelectionChanged  += OnSelectionChanged;
            c.ComponentRemoving += OnComponentRemoving;
        }
예제 #2
0
 // Constructor
 internal StatusCollection(StatusList Parent)
 {
     // the status label control associated with this collection
     this.Parent = Parent;
 }
예제 #3
0
 public StatusItem()
 {
     // Declare a new StatusLabel control for this item
     Parent = new StatusList();
 }