private void BtnUpdate_Click(object sender, EventArgs e) { b = new Bll.ClsBooks(Convert.ToInt32(dgvBooks.SelectedRows[0].Cells["BookCode"].Value)); FrmBook fb = new FrmBook(b, "update"); fb.Show(); }
private void BtnAdd_Click(object sender, EventArgs e) { FrmBook fb = new FrmBook(); fb.Show(); }