public override void Initialize(IComponent component)
		{
			base.Initialize(component);
			base.AutoResizeHandles=true;
			this.collapsibleContainer=component as CollapsibleContainerBase;
			this.collapsibleContainerPanel1=this.collapsibleContainer.Panel1;
			this.collapsibleContainerPanel2=this.collapsibleContainer.Panel2;
			base.EnableDesignMode(this.collapsibleContainer.Panel1, "Panel1");
			base.EnableDesignMode(this.collapsibleContainer.Panel2, "Panel2");
			this.designerHost=(IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
			if(this.selectedPanel==null)
			{
				this.Selected=this.collapsibleContainerPanel1;
			}
			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 override void Initialize(IComponent component)
        {
            base.Initialize(component);
            base.AutoResizeHandles          = true;
            this.collapsibleContainer       = component as CollapsibleContainerBase;
            this.collapsibleContainerPanel1 = this.collapsibleContainer.Panel1;
            this.collapsibleContainerPanel2 = this.collapsibleContainer.Panel2;
            base.EnableDesignMode(this.collapsibleContainer.Panel1, "Panel1");
            base.EnableDesignMode(this.collapsibleContainer.Panel2, "Panel2");
            this.designerHost = (IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
            if (this.selectedPanel == null)
            {
                this.Selected = this.collapsibleContainerPanel1;
            }
            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);
            }
        }
Exemple #3
0
 public CollapsibleContainerTypedControlCollection(Control c, Type type, bool isReadOnly)
     : base(c, type, isReadOnly)
 {
     owner = c as CollapsibleContainerBase;
 }
			public CollapsibleContainerTypedControlCollection(Control c, Type type, bool isReadOnly)
				: base(c, type, isReadOnly)
			{
				owner=c as CollapsibleContainerBase;
			}