public override void Initialize(IComponent component) { base.Initialize(component); base.AutoResizeHandles=true; this.collapsibleContainer=component as CollapsibleContainer; this.collapsibleContainerPanel=this.collapsibleContainer.Panel; base.EnableDesignMode(this.collapsibleContainer.Panel, "Panel"); this.designerHost=(IDesignerHost)component.Site.GetService(typeof(IDesignerHost)); if(this.selectedPanel==null) { this.Selected=this.collapsibleContainerPanel; } this.collapsibleContainer.MouseDown+=new MouseEventHandler(this.OnCollapsibleContainerClick); this.collapsibleContainer.DoubleClick+=new EventHandler(this.OnCollapsibleContainerDoubleClick); this.collapsibleContainer.SizeChanged+=new EventHandler(this.OnSizeChanged); ISelectionService service=(ISelectionService)this.GetService(typeof(ISelectionService)); if(service!=null) { service.SelectionChanged+=new EventHandler(this.OnSelectionChanged); } }
public CollapsibleContainerTypedControlCollection(Control c, Type type, bool isReadOnly) : base(c, type, isReadOnly) { owner = c as CollapsibleContainer; }
public CollapsibleContainerTypedControlCollection(Control c, Type type, bool isReadOnly) : base(c, type, isReadOnly) { owner=c as CollapsibleContainer; }