Untitled
unknown
plain_text
a year ago
804 B
5
Indexable
private void DelBtn_Click(object sender, EventArgs e) { try { string select = dataGridView1.CurrentRow.Cells[0].Value.ToString(); DialogResult del = MessageBox.Show("Вы действительно хотите удалить товар?", "Подтверждение удаления", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (del == DialogResult.Yes) { Status_Class.DeleteStatus(select); Status_Class.GetStatus(); dataGridView1.DataSource = Status_Class.dtStatus; MessageBox.Show("Товар удален", "Успешно!", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch { MessageBox.Show("Ошибка при удалении!"); } }
Editor is loading...
Leave a Comment