private void btnxoadl_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DialogResult dr = MessageBox.Show("Bạn chắc chắn muốn xóa thông tin dung lượng này?", "Xác nhận xóa", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { if (dlCtrl.delData(txtmadl.Text.Trim())) { MessageBox.Show("Xóa thành công thông tin dung lượng!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); clearData1(); } else { MessageBox.Show("Không xóa được thông tin dung lượng!", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } } frmDungLuong_Load(sender, e); DisEnl(false); }