private void btnDelete_Click(object sender, EventArgs e) { frmDeleteBook frmDelete = new frmDeleteBook(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value.ToString())); frmDelete.ShowDialog(); Search(); }
private void button10_Click(object sender, EventArgs e) { frmDeleteBook frmDelete = new frmDeleteBook(); frmDelete.Show(); }