public MainForm() { InitializeComponent(); model = new Model(); control = new Controller(); this.menuStrip1.MdiWindowListItem = this.oknaToolStripMenuItem; renderForm = new RenderForm(this); renderForm.MdiParent = this; renderForm.Show(); }
private void renderWindowToolStripMenuItem_Click(object sender, EventArgs e) { if (renderWindowToolStripMenuItem.Checked) { renderForm = new RenderForm(this); renderForm.MdiParent = this; renderForm.Show(); } else { renderForm.Close(); } }