private bool CheckCodeExist(string maDonViCS) { if (!BioBLL.CheckExistCodeDVCS(maDonViCS)) { XtraMessageBox.Show("Mã đơn vị cơ sở đã tồn tại!", "BioNet - Chương trình sàng lọc sơ sinh", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }