private void btnEdit_Click(object sender, EventArgs e) { FormEditBook updateBookForm = new FormEditBook(); updateBookForm.SetISBN = dataGridView1.CurrentRow.Cells[0].Value.ToString(); updateBookForm.ShowDialog(); }
private void updateBookInformationToolStripMenuItem_Click(object sender, EventArgs e) { this.IsMdiContainer = true; FormEditBook bookUpdateForm = new FormEditBook(); bookUpdateForm.MdiParent = this; bookUpdateForm.Show(); }