public clsAccountInfo(int accountid) { dbConnect con = new dbConnect(); clsAccountInfo account = con.GetAccountInfo(accountid); if (account != null) { AccountId = account.AccountId; AccountName = account.AccountName; CreditLimit = account.CreditLimit; YTDTransaction = account.YTDTransaction; PrincipalBalance = account.PrincipalBalance; TotalInterest = account.TotalInterest; } con.Close(); }