private void loadEditForm(Control ctl) { ucEditor ucEdit = (ucEditor)ctl; ucEdit.App = this.Hook as IApplication; ucEdit.CloseForm = new CloseDelegate(this.closeForm); //ucEdit.CloseViewerApp = new CloseApp(this.closeApp); ucEdit.loadForm(); }