public ConfirmPage(WizardData wizardData) { InitializeComponent(); AccountResource account = wizardData.Account; try { IJKEService channel = ServiceManager.GetChannel(); string today = DateTime.Now.ToShortDateString(); TransactionResource previewTansaction = channel.GetTransactionPreview(account.AccountNumber, wizardData.Organization.Name, today, wizardData.Percentage); wizardData.PreviewTransaction = previewTansaction; AccountResource previewAccount = new AccountResource(); previewAccount.Balance = previewTansaction.PostBalance; previewAccount.Dividends = account.Dividends; previewAccount.DividendsETD = account.DividendsETD; previewAccount.Contributions = account.Contributions + previewTansaction.Amount; previewAccount.ContributionsETD = account.ContributionsETD + previewTansaction.Amount; wizardData.PreviewAccount = previewAccount; } catch (Exception ex) { MessageBox.Show(ex.Message); } // Bind wizard state to UI this.DataContext = wizardData; }
public AccountPage(WizardData wizardData) { InitializeComponent(); // Bind wizard state to UI this.DataContext = wizardData; try { IJKEService channel = ServiceManager.GetChannel(); OrganizationResource[] orgs = channel.GetOrganizations(); this.OrganizationsComboBox.ItemsSource = orgs; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public ReturnPage(WizardData wizardData) { InitializeComponent(); try { IJKEService channel = ServiceManager.GetChannel(); string today = DateTime.Now.ToShortDateString(); TransactionResource transaction = channel.PostTransaction(wizardData.Account.AccountNumber, wizardData.Organization.Name, today, wizardData.Percentage); wizardData.Transaction = transaction; } catch (Exception ex) { MessageBox.Show(ex.Message); } // Bind wizard state to UI this.DataContext = wizardData; }
public AccountLauncher(AccountResource account) { wizardData = new WizardData(account); }
public DividendLauncher(UserResource user) { wizardData = new WizardData(user); }
public AccountLauncher(AccountResource account) { wizardData = new WizardData(account); }
public DividendLauncher(UserResource user) { wizardData = new WizardData(user); }