private void добавитьНаВсехЛистахToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = correctFile(); if (flag) { return; } AddAll addObject = new AddAll(); addObject.Owner = this; addObject.ShowDialog(); }
private void добавитьНаВыбранныхЛистахToolStripMenuItem_Click(object sender, EventArgs e) { bool flag = correctFile(); if (flag) { return; } flagAdd = true; AddAll add = new AddAll(); add.Owner = this; add.ShowDialog(); flagAdd = false; }