예제 #1
0
 public override void mDeposit(BankBEntities.CAccountsEnt accobj)
 {
     _balance += accobj.AMOUNT;
     balchange(accobj);
     // Raising the Event
     if (onbalchange != null)
     {
         onbalchange(accobj);
     }
 }
예제 #2
0
 public override void mWithdraw(BankBEntities.CAccountsEnt accobj)
 {
     if (_balance > 5000)
     {
         _balance -= accobj.AMOUNT;
         balchange(accobj);
         // Raising the Event
         if (onbalchange != null)
         {
             onbalchange(accobj);
         }
     }
     else
     {
         throw new InSufficientFundException("You have In Sufficient Funds in your Account");
     }
 }