private void btnThem_Click(object sender, EventArgs e) { frmAddSach frm = new frmAddSach(); frm.ShowDialog(); if (frm.IsThem) { HienThiDanhSach(); } }
private void btnSua_Click(object sender, EventArgs e) { frmAddSach frmSua = new frmAddSach(); String maSua = gridSach.CurrentRow.Cells[0].Value.ToString(); frmSua.IsMaSua = maSua; frmSua.ShowDialog(); if (frmSua.IsSua) { HienThiDanhSach(); } }