示例#1
0
文件: Form1.cs 项目: rAum/mmgk
        public MainForm()
        {
            InitializeComponent();

            model = new Model();
            control = new Controller();

            this.menuStrip1.MdiWindowListItem = this.oknaToolStripMenuItem;

            renderForm = new RenderForm(this);
            renderForm.MdiParent = this;
            renderForm.Show();
        }
示例#2
0
文件: Form1.cs 项目: rAum/mmgk
 private void renderWindowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (renderWindowToolStripMenuItem.Checked)
     {
         renderForm = new RenderForm(this);
         renderForm.MdiParent = this;
         renderForm.Show();
     }
     else
     {
         renderForm.Close();
     }
 }