private void addElementToolStripMenuItem_Click(object sender, EventArgs e) { if (form == null || form.IsDisposed) form = new Edition(this); form.ShowMeAdd(); }
private void editElementToolStripMenuItem_Click(object sender, EventArgs e) { if (leftListBox.SelectedItem == null) { MessageBox.Show("Не выбран элемент", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (form == null || form.IsDisposed) form = new Edition(this); form.ShowMeEdit(leftListBox.SelectedItem.ToString()); }