Пример #1
0
 /// <summary>
 /// 减少金额.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="amt"></param>
 public void SubCash(Account a, double amt)
 {
     Console.WriteLine("减少金额:{0}", amt);
     a.Cash -= amt;
 }
Пример #2
0
 /// <summary>
 /// 减少金额.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="amt"></param>
 public void SubCash(Account a, double amt)
 {
     Console.WriteLine("日志:减少金额:{0}", amt);
 }
Пример #3
0
 /// <summary>
 /// 增加金额.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="amt"></param>
 public void AddCash(Account a, double amt)
 {
     Console.WriteLine("增加金额:{0}", amt);
     a.Cash += amt;
 }
Пример #4
0
 /// <summary>
 /// 增加金额.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="amt"></param>
 public void AddCash(Account a, double amt)
 {
     Console.WriteLine("日志:增加金额:{0}", amt);
 }