private void btnThem_Click(object sender, EventArgs e) { if (txtMaGaySach.Text == "") { MessageBox.Show("Vui lòng chọn gáy sách trước khi thực hiện thao tác", "Thông báo"); return; } Form tmp = new Themcuonsach(txtMaGaySach.Text); tmp.ShowDialog(); int currentRow = dgvsach.SelectedRows[0].Index; reloadFieldQuery(); reDisplay(); dgvsach.CurrentCell = dgvsach.Rows[currentRow].Cells[0]; }
private void btnThem_Click(object sender, EventArgs e) { Form tmp = new Themcuonsach(maGaySach); tmp.ShowDialog(); }