public void SetBankAmountDetails(BankAcctDetail bankAcctDetail) { StringBuilder catpitalInfo = new StringBuilder(); catpitalInfo.AppendLine("".PadRight(_EqualMarkPadNumber, '=')); AddLine("银行账号:", bankAcctDetail.BankAccount, catpitalInfo, 6); AddLine("银行可用余额:", bankAcctDetail.BankUseAmount, catpitalInfo, 4); AddLine("银行可取余额:", bankAcctDetail.BankFetchAmount, catpitalInfo, 4); AddLine("币种:", bankAcctDetail.CurrencyID, catpitalInfo, 8); catpitalInfo.AppendLine("".PadRight(_EqualMarkPadNumber, '=')); tb_AmountDetails.Text = catpitalInfo.ToString(); }
//static readonly int minusMarkPadNumber = 45; public BankAmountQry(BankAcctDetail bankAcctDetail) { InitializeComponent(); SetBankAmountDetails(bankAcctDetail); }