コード例 #1
0
        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();
        }
コード例 #2
0
        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();
            }
        }