示例#1
0
文件: Invoice.cs 项目: shubidu/csharp
        public double InvoiceTotal(InvoiceDetail[] items)
        {
            double total = 0;

            foreach (var i in items)
            {
                total += i.DblLineTotal;
            }

            return total;
        }
示例#2
0
 //general purpose constructor
 public ReceivableInvoice(InvoiceDetail[] items)
     : base(items)
 {
 }
示例#3
0
 //general purpose constructor
 public OutgoingInvoice(InvoiceDetail[] items)
     : base(items)
 {
 }
示例#4
0
文件: Invoice.cs 项目: shubidu/csharp
 //general purpose constructor
 public Invoice(InvoiceDetail[] items)
 {
     InvoiceNumber = sequence_id++;
     InvoiceItems = items;
 }
示例#5
0
 //copy constructor
 public InvoiceDetail(InvoiceDetail i)
     : this(i.DblLineTotal)
 {
 }