public paymentForm(Context context, Customer customer) { this.context = context; InitializeComponent(); this.customer = customer; payment = new Payment(customer); populateFields(); }
public paymentForm(Context context, Invoice invoice) { this.context = context; InitializeComponent(); this.invoice = invoice; this.customer = invoice.Customer; payment = new Payment(invoice); populateFields(); }