コード例 #1
0
        protected void btnGetResults_Click(object sender, EventArgs e)
        {
            string owner = "";
            string account_id = "";
            decimal total_amount_in_accounts = 0;

            wsBanking.BankingService bank = new wsBanking.BankingService();
            wsBanking.BankInformation account_info;
            account_info = bank.GetBankInformation();

            for (int i = 0; i < account_info.accounts.Length; i++)
            {
                owner = account_info.OwnerName;
                account_id = account_info.AccountID;
                total_amount_in_accounts = total_amount_in_accounts + account_info.accounts[i].Amount;
            }
            txtShowResults.Text = "Owner: " + owner + Environment.NewLine;
            txtShowResults.Text += "Account ID: " + account_id + Environment.NewLine;
            txtShowResults.Text += "Total Amount: " + Convert.ToString(total_amount_in_accounts);
        }
コード例 #2
0
        protected void btnGetResults_Click(object sender, EventArgs e)
        {
            string  owner      = "";
            string  account_id = "";
            decimal total_amount_in_accounts = 0;

            wsBanking.BankingService  bank = new wsBanking.BankingService();
            wsBanking.BankInformation account_info;
            account_info = bank.GetBankInformation();

            for (int i = 0; i < account_info.accounts.Length; i++)
            {
                owner      = account_info.OwnerName;
                account_id = account_info.AccountID;
                total_amount_in_accounts = total_amount_in_accounts + account_info.accounts[i].Amount;
            }
            txtShowResults.Text  = "Owner: " + owner + Environment.NewLine;
            txtShowResults.Text += "Account ID: " + account_id + Environment.NewLine;
            txtShowResults.Text += "Total Amount: " + Convert.ToString(total_amount_in_accounts);
        }