private void loadEditForm(Control ctl) { ucEditor ucEdit = (ucEditor)ctl; ucEdit.App = this.App; ucEdit.CloseForm = new CloseDelegate(this.closeForm); ucEdit.CloseViewerApp = new CloseApp(this.closeApp); ucEdit.loadForm(); }
private void checkEditor(ToolStripButton tsb) { if (tsb.Text.ToUpper() == "EDITORS") { Control p_NewControl = returnNewControl(tsb.Tag.ToString()); ucEditor ucEdit = (ucEditor)p_NewControl; ucEdit.App = this.App; ucEdit.CloseForm = new CloseDelegate(this.closeForm); ucEdit.CloseViewerApp = new CloseApp(this.closeApp); ucEdit.loadForm(); } }