private void посещенияToolStripMenuItem_Click(object sender, EventArgs e) { RestartTimer(); CloseMdiChild(); VisitForm VF = new VisitForm(user); VF.MdiParent = this; MakeFormHooks(VF); VF.Show(); }
public Container(User userObject, Form startForm) { InitializeComponent(); AuthForm = startForm; user = userObject; this.Text += " - " + user.Login; this.выходToolStripMenuItem.Text += " " + user.Login; VisitForm VF = new VisitForm(user); VF.MdiParent = this; MakeFormHooks(VF); VF.Show(); }