public override void Change()
 {
     if (!(MyRule.Get(MyLogin.RoleId, "bbiAllowance") != "OK"))
     {
         if (MyRule.AllowAccess)
         {
             DIC_ALLOWANCE dICALLOWANCE = new DIC_ALLOWANCE();
             object        cellValue    = base.GetCellValue(this.m_RowClickEventArgs.RowIndex, "AllowanceCode");
             if (cellValue != null)
             {
                 base.SetWaitDialogCaption("Đang kiểm tra dữ liệu....");
                 if (!(dICALLOWANCE.Get(cellValue.ToString()) != "OK"))
                 {
                     this.DoHide();
                     xfmAllowanceAdd _xfmAllowanceAdd = new xfmAllowanceAdd(Actions.Update, dICALLOWANCE);
                     _xfmAllowanceAdd.Updated += new xfmAllowanceAdd.UpdatedEventHander(this.frm_Updated);
                     _xfmAllowanceAdd.Added   += new xfmAllowanceAdd.AddedEventHander(this.frm_Added);
                     _xfmAllowanceAdd.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, "bbiAllowance") != "OK"))
     {
         if (MyRule.AllowAdd)
         {
             xfmAllowanceAdd _xfmAllowanceAdd = new xfmAllowanceAdd(Actions.Add);
             _xfmAllowanceAdd.Added += new xfmAllowanceAdd.AddedEventHander(this.frm_Added);
             _xfmAllowanceAdd.ShowDialog();
         }
         else
         {
             MyRule.Notify();
         }
     }
 }