private void RefreshBankAccountsStatus() { MainModuleServiceClient client = new MainModuleServiceClient(); client.GetPagedBankAccountsAsync(new PagedCriteria { PageIndex = 0, PageCount = 50 }); client.GetPagedBankAccountsCompleted += delegate(object sender, GetPagedBankAccountsCompletedEventArgs e) { if (!e.Cancelled && e.Error == null) { List <BankAccount> bankAccounts = new List <BankAccount>(); e.Result.ToList().ForEach(ba => bankAccounts.Add(ba)); if (bankAccounts != null) { this.BankAccounts = bankAccounts; } } else { MessageBox.Show(e.Error.Message, "Perform Transfer", MessageBoxButton.OK); } }; }
private void RefreshBankAccountsStatus() { MainModuleServiceClient client = new MainModuleServiceClient(); client.GetPagedBankAccountsAsync(new PagedCriteria { PageIndex = 0, PageCount = 50 }); client.GetPagedBankAccountsCompleted += delegate(object sender, GetPagedBankAccountsCompletedEventArgs e) { if (!e.Cancelled && e.Error == null) { List<BankAccount> bankAccounts = new List<BankAccount>(); e.Result.ToList().ForEach(ba => bankAccounts.Add(ba)); if (bankAccounts != null) { this.BankAccounts = bankAccounts; } } else MessageBox.Show(e.Error.Message, "Perform Transfer", MessageBoxButton.OK); }; }