public frmPayCurrency(PayCurrencyConfirmation payCurrencyConfirmation) : this() { if (payCurrencyConfirmation == null) { throw new ArgumentNullException("payCurrencyConfirmation"); } this.tenderInfo = (Tender)payCurrencyConfirmation.TenderInfo; viewModel = new PayCurrencyViewModel(payCurrencyConfirmation.BalanceAmount); viewModel.PropertyChanged += new PropertyChangedEventHandler(OnViewModel_PropertyChanged); }
private void HandleInputConfirmationInteraction(InteractionRequestedEventArgs e) { if (e == null) { throw new ArgumentNullException("InteractionRequestedEventArgs"); } PayCurrencyConfirmation context = (PayCurrencyConfirmation)e.Context; PayCurrencyConfirmation results = InvokeInteraction <PayCurrencyConfirmation, PayCurrencyConfirmation>("PayCurrencyView", context, true); if (results != null) { context.Confirmed = results.Confirmed; context.RegisteredAmount = results.RegisteredAmount; context.ExchangeRate = results.ExchangeRate; context.CurrentCurrencyCode = results.CurrentCurrencyCode; } }