private void btnCapNhat_Click(object sender, EventArgs e) { if (!RegexForm()) { return; } else { GetInfoResultNguyenLieu(); if (nl != null) { if (NguyenLieuBUS.CapNhatNguyenLieu(nl)) { //MessageBox.Show("Cập nhật nguyên liệu thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.None); LoadDSNguyenLieu(); LamMoi(); } else { MessageBox.Show("Cập nhật nguyên liệu thất bại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Dữ liệu nguyên liệu không tồn tại!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }