Ejemplo n.º 1
0
 public virtual void AddInvoice(PaymentInvoice invoice)
 {
     invoice.Payment = this;
     invoices.Insert(0, invoice);
     if (InvoicesChanged != null)
     {
         InvoicesChanged(invoice, null);
     }
 }
Ejemplo n.º 2
0
 public virtual void RemoveInvoice(PaymentInvoice invoice)
 {
     if (invoices.Contains(invoice))
     {
         invoices.Remove(invoice);
         if (InvoicesChanged != null)
         {
             InvoicesChanged(invoice, null);
         }
     }
 }