public override void Initialize(IComponent component)
        {
            base.Initialize(component);
            base.AutoResizeHandles = true;
            this.splitContainer    = component as TSplitContainer;
            this.splitterPanel1    = this.splitContainer.Panel1;
            this.splitterPanel2    = this.splitContainer.Panel2;
            base.EnableDesignMode(this.splitContainer.Panel1, "Panel1");
            base.EnableDesignMode(this.splitContainer.Panel2, "Panel2");
            this.designerHost = (IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
            if (this.selectedPanel == null)
            {
                this.Selected = this.splitterPanel1;
            }
            this.splitContainer.MouseDown      += new MouseEventHandler(this.OnSplitContainer);
            this.splitContainer.SplitterMoved  += new SplitterEventHandler(this.OnSplitterMoved);
            this.splitContainer.SplitterMoving += new SplitterCancelEventHandler(this.OnSplitterMoving);
            this.splitContainer.DoubleClick    += new EventHandler(this.OnSplitContainerDoubleClick);
            ISelectionService service = (ISelectionService)this.GetService(typeof(ISelectionService));

            if (service != null)
            {
                service.SelectionChanged += new EventHandler(this.OnSelectionChanged);
            }
        }
        private void OnSelectionChanged(object sender, EventArgs e)
        {
            ISelectionService service = (ISelectionService)this.GetService(typeof(ISelectionService));

            this.splitContainerSelected = false;
            if (service != null)
            {
                foreach (object obj2 in service.GetSelectedComponents())
                {
                    TSplitterPanel panel = obj2 as TSplitterPanel;
                    if ((panel != null) && (panel.Parent == this.splitContainer))
                    {
                        this.splitContainerSelected = false;
                        this.Selected = panel;
                        break;
                    }
                    this.Selected = null;
                    if (obj2 == this.splitContainer)
                    {
                        this.splitContainerSelected = true;
                        break;
                    }
                }
            }
        }
        public override void Initialize(IComponent component)
        {
            base.Initialize(component);
            this.splitterPanel          = (TSplitterPanel)component;
            this.designerHost           = (IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
            this.splitContainerDesigner = (TSplitContainerDesigner)this.designerHost.GetDesigner(this.splitterPanel.Parent);
            IComponentChangeService service = (IComponentChangeService)this.GetService(typeof(IComponentChangeService));

            if (service != null)
            {
                service.ComponentChanged += new ComponentChangedEventHandler(this.OnComponentChanged);
            }
            PropertyDescriptor descriptor = TypeDescriptor.GetProperties(component)["Locked"];

            if ((descriptor != null) && (this.splitterPanel.Parent is TSplitContainer))
            {
                descriptor.SetValue(component, true);
            }
        }
		public override void Initialize(IComponent component)
		{
			base.Initialize(component);
			base.AutoResizeHandles=true;
			this.splitContainer=component as TSplitContainer;
			this.splitterPanel1=this.splitContainer.Panel1;
			this.splitterPanel2=this.splitContainer.Panel2;
			base.EnableDesignMode(this.splitContainer.Panel1, "Panel1");
			base.EnableDesignMode(this.splitContainer.Panel2, "Panel2");
			this.designerHost=(IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
			if(this.selectedPanel==null)
			{
				this.Selected=this.splitterPanel1;
			}
			this.splitContainer.MouseDown+=new MouseEventHandler(this.OnSplitContainer);
			this.splitContainer.SplitterMoved+=new SplitterEventHandler(this.OnSplitterMoved);
			this.splitContainer.SplitterMoving+=new SplitterCancelEventHandler(this.OnSplitterMoving);
			this.splitContainer.DoubleClick+=new EventHandler(this.OnSplitContainerDoubleClick);
			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);
			this.splitterPanel=(TSplitterPanel)component;
			this.designerHost=(IDesignerHost)component.Site.GetService(typeof(IDesignerHost));
			this.splitContainerDesigner=(TSplitContainerDesigner)this.designerHost.GetDesigner(this.splitterPanel.Parent);
			IComponentChangeService service=(IComponentChangeService)this.GetService(typeof(IComponentChangeService));
			if(service!=null)
			{
				service.ComponentChanged+=new ComponentChangedEventHandler(this.OnComponentChanged);
			}
			PropertyDescriptor descriptor=TypeDescriptor.GetProperties(component)["Locked"];
			if((descriptor!=null)&&(this.splitterPanel.Parent is TSplitContainer))
			{
				descriptor.SetValue(component, true);
			}
		}