コード例 #1
0
        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);
                }
            };
        }
コード例 #2
0
        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);
            };


        }