private void btnEdit_Click(object sender, EventArgs e) { int index = dgvBooks.CurrentRow.Index; FormAddEditBook editBook = new FormAddEditBook(dgvBooks.SelectedCells[0].Value.ToString()); editBook.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { FormAddEditBook addbook = new FormAddEditBook(); addbook.ShowDialog(); }