public override void Change()
 {
     if (!(MyRule.Get(MyLogin.RoleId, "bbiProfessional") != "OK"))
     {
         if (MyRule.AllowAccess)
         {
             DIC_PROFESSIONAL dICPROFESSIONAL = new DIC_PROFESSIONAL();
             object           cellValue       = base.GetCellValue(this.m_RowClickEventArgs.RowIndex, "ProfessionalCode");
             if (cellValue != null)
             {
                 base.SetWaitDialogCaption("Đang kiểm tra dữ liệu....");
                 if (!(dICPROFESSIONAL.Get(cellValue.ToString()) != "OK"))
                 {
                     this.DoHide();
                     xfmProfessionalAdd _xfmProfessionalAdd = new xfmProfessionalAdd(Actions.Update, dICPROFESSIONAL);
                     _xfmProfessionalAdd.Updated += new xfmProfessionalAdd.UpdatedEventHander(this.frm_Updated);
                     _xfmProfessionalAdd.Added   += new xfmProfessionalAdd.AddedEventHander(this.frm_Added);
                     _xfmProfessionalAdd.ShowDialog();
                 }
                 else
                 {
                     this.DoHide();
                     XtraMessageBox.Show("Dữ liệu không tồn tại", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                 }
             }
         }
         else
         {
             MyRule.Notify();
         }
     }
 }
 protected override void Add()
 {
     if (!(MyRule.Get(MyLogin.RoleId, "bbiProfessional") != "OK"))
     {
         if (MyRule.AllowAdd)
         {
             xfmProfessionalAdd _xfmProfessionalAdd = new xfmProfessionalAdd(Actions.Add);
             _xfmProfessionalAdd.Added += new xfmProfessionalAdd.AddedEventHander(this.frm_Added);
             _xfmProfessionalAdd.ShowDialog();
         }
         else
         {
             MyRule.Notify();
         }
     }
 }