private void мастераToolStripMenuItem_Click(object sender, EventArgs e) { Form newForm = new MasterView(this, user); if (currentChildForm != null) { currentChildForm.Close(); } currentChildForm = newForm; newForm.MdiParent = this; newForm.WindowState = FormWindowState.Maximized; newForm.BringToFront(); newForm.Show(); }