Пример #1
0
        private void modifyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CompontBaseForm form = null;

            switch (_select_data.type)
            {
            case CmpontType.PARABOLOIDMIRROR:
                form = new ParaboloidForm();
                break;

            case CmpontType.HYPERNOLOIDMIRROR:
                form = new HyperboloidForm();
                break;

            case CmpontType.PLANEMIRROR:
                form = new PlaneForm();
                break;

            case CmpontType.ELLIPSOIDMIRROR:
                form = new EllipsoidForm();
                break;

            case CmpontType.GUASSIANSOURCE:
                form = new GuassianForm();
                break;

            default:
                return;
            }
            form.setData(_select_data);
            form.getData += new CompontBaseForm.getDataHandler(ModifyCompont);
            form.setRender(renderWindowControl1.RenderWindow);
            form.cancel += new CompontBaseForm.cancelHandler(cancelCompont);
            form.Show(this);
        }
Пример #2
0
        private void hyperboloidToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HyperboloidForm form = new HyperboloidForm();

            form.getData += new CompontBaseForm.getDataHandler(AddCompont);
            form.setRender(renderWindowControl1.RenderWindow);
            form.cancel += new CompontBaseForm.cancelHandler(cancelCompont);
            form.Show(this);
        }