Exemplo n.º 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;
        }
Exemplo n.º 2
0
 // Constructor
 internal StatusCollection(StatusList Parent)
 {
     // the status label control associated with this collection
     this.Parent = Parent;
 }
Exemplo n.º 3
0
 public StatusItem()
 {
     // Declare a new StatusLabel control for this item
     Parent = new StatusList();
 }