private void bAdd_Click(object sender, EventArgs e) { AddEditService service = new AddEditService(); service.ShowInTaskbar = false; service.FormClosing += Points_FormClosing; service.ShowDialog(); }
private void bEdit_Click(object sender, EventArgs e) { if (code != null) { AddEditService service = new AddEditService(code); service.ShowInTaskbar = false; service.FormClosing += Points_FormClosing; service.ShowDialog(); } else { MessageBox.Show("Требуется выбрать строку в таблице", "Ошибка"); } }