Ejemplo n.º 1
0
 public bool TransferTo(IBankAccount destination, decimal amount)
 {
     bool result;
     result = Withdraw(amount);
     if (result)
         destination.PayIn(amount);
     return result;
 }
Ejemplo n.º 2
0
        }                                                                //返回余额

        public bool TransferTo(IBankAccount destination, decimal amount) //银行转账
        {
            if (Withdraw(amount) == true)
            {
                destination.PayIn(amount);
                return(true);
            }
            return(false);
        }
Ejemplo n.º 3
0
 public bool TransferTo(IBankAccount destination, decimal amount)
 {
     if (!Withdraw(amount))
     {
         return(false);
     }
     destination.PayIn(amount);
     return(true);
 }
Ejemplo n.º 4
0
        public bool TransferTo(IBankAccount destination, decimal amount)
        {
            bool result;

            if ((result = Withdraw(amount)) == true)
            {
                destination.PayIn(amount);
            }
            return(result);
        }
Ejemplo n.º 5
0
        bool TransferTo(IBankAccount youAccount, decimal amount)
        {
            bool result = WithShowMySelf(amount);

            if (result)
            {
                youAccount.PayIn(amount);
            }
            return(result);
        }
Ejemplo n.º 6
0
        public bool TransferTo(IBankAccount destination, decimal amount)
        {
            bool result = WithShowMyself(amount);

            if (result == true)
            {
                destination.PayIn(amount);
            }
            return(result);
        }
Ejemplo n.º 7
0
        public bool TransferTo(IBankAccount account, decimal amount)
        {
            bool result;

            result = Withdraw(amount);
            if (result)
            {
                account.PayIn(amount);
            }
            return(result);
        }
Ejemplo n.º 8
0
        // 实现ITransferAccount接口的方法
        public bool TransferTo(IBankAccount destination, decimal account)
        {
            bool result;

            result = WithDraw(account);
            if (result)
            {
                destination.PayIn(account);
            }
            return(result);
        }
Ejemplo n.º 9
0
 }                                                 //返回余额
 //银行转账
 public bool TransferTo(IBankAccount destiation, decimal amount)
 {
     if (Writhdraw(amount) == true)
     {
         destiation.PayIn(amount);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 10
0
 public bool TransferTo(IBankAccount destination, decimal amount)
 {
     if (Withdraw(amount))
     {
         destination.PayIn(amount);
         return true;
     }
     else
     {
         return false;
     }
 }