Beispiel #1
0
 private void addElementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (form == null || form.IsDisposed)
         form = new Edition(this);
     form.ShowMeAdd();
 }
Beispiel #2
0
        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());
        }