public frmPayCustomerAccount(PayCustomerAccountConfirmation payCustomerAccountConfirmation) : this() { if (payCustomerAccountConfirmation == null) { throw new ArgumentNullException("payCustomerAccountConfirmation"); } this.tenderInfo = (Tender)payCustomerAccountConfirmation.TenderInfo; amtCustAmounts.SoldLocalAmount = payCustomerAccountConfirmation.BalanceAmount; this.balanceAmount = payCustomerAccountConfirmation.BalanceAmount; this.PosTransaction = (PosTransaction)payCustomerAccountConfirmation.PosTransaction; }
private void HandlePayCustomerAccountConfirmationInteraction(InteractionRequestedEventArgs e) { if (e == null) { throw new ArgumentNullException("InteractionRequestedEventArgs"); } PayCustomerAccountConfirmation context = (PayCustomerAccountConfirmation)e.Context; PayCustomerAccountConfirmation results = InvokeInteraction <PayCustomerAccountConfirmation, PayCustomerAccountConfirmation>("PayCustomerAccountForm", context, true); if (results != null) { context.Confirmed = results.Confirmed; context.RegisteredAmount = results.RegisteredAmount; context.CustomerId = results.CustomerId; } }