public override void Initialize(IComponent component)
            {
                base.Initialize(component);

                // Record instance of control we're designing
                _pad = (ShengPad)component;
                this.EnableDesignMode(_pad.ContentPanel, "contentPanel");
            }
            public TitlePanel(ShengPad pad)
            {
                Pad = pad;

                this.SetStyle(ControlStyles.DoubleBuffer |
                              ControlStyles.UserPaint |
                              ControlStyles.AllPaintingInWmPaint,
                              true);
                this.UpdateStyles();

                this.ResizeRedraw = true;
            }