Exemple #1
0
 internal void PayInvoice(double amountPaid)
 {
     var handler = InvoicePaid;
     if (handler != null)
     {
         var args = new InvoicePaidEventArgs(Expenses, amountPaid);
         handler(this, args);
     }
     Expenses -= amountPaid;
 }
Exemple #2
0
 internal PaymentEntry PayInvoice(double amountPaid)
 {
     var handler = InvoicePaid;
     if (handler != null)
     {
         var args = new InvoicePaidEventArgs(Expenses, amountPaid);
         handler(this, args);
     }
     Expenses -= amountPaid;
     return new PaymentEntry(ItemName, Modifier.GetName(), -amountPaid, Planetarium.GetUniversalTime());
 }