private void btCorpus_Click(object sender, EventArgs e) { Enclosures selectCorpus = new Enclosures(true); selectCorpus.FormClosing += SelectCorpus_FormClosing; selectCorpus.Show(); }
private void корпусаToolStripMenuItem_Click(object sender, EventArgs e) { Enclosures enclosures = new Enclosures(); enclosures.Show(); }
private void SelectCorpus_FormClosing(object sender, FormClosingEventArgs e) { Enclosures selectCorpus = (Enclosures)sender; tbCorpus.Text = selectCorpus.selectEnclosures; }