コード例 #1
0
        private string GetUserName(int id)
        {
            UserService.UserClient client = new UserService.UserClient();
            string name = "";

            UserService.UserB user = new UserService.UserB();
            user = client.GetUser(id);
            name = user.Name;
            return(name);
        }
コード例 #2
0
        private void loadAllData()
        {
            UserService.UserB user = new UserService.UserB();
            BankAccountService.BankAccountB account = new BankAccountService.BankAccountB();
            account = bankClient.GetBankAccountById(userBankAccId);
            user    = client.GetUser(userId);
            txt_profileName.Text    = user.Name;
            txt_profileEmail.Text   = user.Email;
            currentEmail            = user.Email;
            txt_profileAddress.Text = user.Address;

            txt_profilePhone.Text = user.Phone;

            txt_profileBankNumber.Text = account.AccountNo.ToString();
            txt_profileCCv.Text        = account.CCV.ToString();
            txt_profileExpiryDate.Text = account.ExpiryDate.ToString();
        }