private void btn_Sua_Click(object sender, EventArgs e) { trangthai = 2; check = true; Frm_Sach_Details sd = new Frm_Sach_Details(DTGV.CurrentRow.Cells[0].Value.ToString(), check, trangthai); sd.ShowDialog(); }
private void DTGV_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { check = true; trangthai = 0; Frm_Sach_Details sd = new Frm_Sach_Details(DTGV.Rows[e.RowIndex].Cells["MaTL"].Value.ToString(), check, trangthai); sd.ShowDialog(); }
private void btn_Them_Click(object sender, EventArgs e) { check = false; trangthai = 1; Frm_Sach_Details sd = new Frm_Sach_Details("", check, trangthai); sd.ShowDialog(); }