コード例 #1
0
 public void DepositMoney(object sender, DepositArgs args)
 {
     foreach (DepositAccount ba in clients)
     {
         if (ba.GetAccountid == args.get_accountid)
         {
             ba.MakeDeposit(args.get_amount);
         }
     }
 }
コード例 #2
0
 public void CheckAccount(object sender, DepositArgs args)
 {
     foreach (DepositAccount ba in clients)
     {
         if (ba.GetAccountid == args.get_accountid)
         {
             if (ba.getwithdrawrequest == true)
             {
                 clients.Remove(ba);
             }
         }
     }
 }