private bool CheckCodeExist(string maChiCuc) { if (!BioBLL.CheckExistCode(maChiCuc)) { XtraMessageBox.Show("Mã chi cục đã tồn tại!", "Bệnh viện điện tử .NET", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }