private MultiPaneControlDesigner GetParentControlDesigner() { MultiPaneControlDesigner designer = null; if ((this.Control != null) && (this.Control.Parent != null)) { IDesignerHost service = (IDesignerHost)this.GetService(typeof(IDesignerHost)); if (service != null) { designer = (MultiPaneControlDesigner)service.GetDesigner(this.Control.Parent); } } return(designer); }
public frmSwitchPages(MultiPaneControlDesigner theDesigner) { this.myDesigner = theDesigner; this.InitializeComponent(); }