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