Пример #1
0
 /// <summary>
 /// CPA关心每一次交易详情
 /// </summary>
 /// <param name="detail"></param>
 public override void Visit(OutBillDetail detail)
 {
     Console.WriteLine("第{0}笔支出,摘要:{1},交易金额:{2}", countOut++, detail.Summary, detail.Amount);
 }
Пример #2
0
 public abstract void Visit(OutBillDetail detail);
Пример #3
0
 /// <summary>
 /// 老板只关心总支出
 /// </summary>
 /// <param name="detail"></param>
 public override void Visit(OutBillDetail detail)
 {
     TotalOut += detail.Amount;
 }