private void btnXoaLK_Click(object sender, EventArgs e) { int id = int.Parse(txtIdM.Text.ToString()); KhuyenMaiBLL bll = new KhuyenMaiBLL(); try { if (bll.delKM(id)) { MessageBox.Show("Xoá liên kết thành công"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }