internal void PayInvoice(double amountPaid) { var handler = InvoicePaid; if (handler != null) { var args = new InvoicePaidEventArgs(Expenses, amountPaid); handler(this, args); } Expenses -= amountPaid; }
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()); }