private MultiLayerPanelDesigner GetParentControlDesigner()
        {
            MultiLayerPanelDesigner aDesigner = null;

            if (Control != null)
            {
                if (Control.Parent != null)
                {
                    IDesignerHost aSrv = (IDesignerHost)GetService(typeof(IDesignerHost));
                    if (aSrv != null)
                    {
                        aDesigner = (MultiLayerPanelDesigner)aSrv.GetDesigner(Control.Parent);
                    }
                }
            }

            return(aDesigner);
        }
 public MultiLayerPanelSwitchPages(MultiLayerPanelDesigner designer)
 {
     this.designer = designer;
     InitializeComponent();
 }