public void openStartForm() { switch (user.access) { case 1: DirectorStarterForm dform = new DirectorStarterForm(); dform.TopLevel = false; dform.MdiParent = this; dform.Show(); miContrDir.Visible = true; break; case 2: ManagerStarterForm mform = new ManagerStarterForm(); mform.TopLevel = false; mform.MdiParent = this; mform.Show(); miContrMan.Visible = true; break; case 3: CashierStarterForm cform = new CashierStarterForm(); cform.TopLevel = false; cform.MdiParent = this; cform.Show(); miContrCas.Visible = true; break; default: break; } }
private void директорToolStripMenuItem_Click(object sender, EventArgs e) { DirectorStarterForm form = new DirectorStarterForm(); form.TopLevel = false; form.MdiParent = this; form.Show(); }