public void LoadDisplay(Account account) { _ac = new SPKTCore.Core.DataAccess.Impl.AccountRepository(); _account = account; lblName.Text = account.DisplayName; lblUsername.Text = account.UserName; lblCreateDate.Text = account.CreateDate.ToString(); lblFriendID.Text = account.AccountID.ToString(); if (_ac.fullname(account.AccountID) == null) { lblName.Text = account.UserName; } lblemail.Text = account.Email; }
public void LoadDisplay(Account account) { IRedirector r = new Redirector(); _ac = new SPKTCore.Core.DataAccess.Impl.AccountRepository(); _account = account; lblName.Text = account.DisplayName; linkAvatar.HRef = r.GetProfileURL(account.UserName); lblUsername.Text = account.UserName; linkUsername.HRef = r.GetProfileURL(account.UserName); lblCreateDate.Text = account.CreateDate.ToString(); lblFriendID.Text = account.AccountID.ToString(); if (_ac.fullname(account.AccountID) == null) { lblName.Text = account.UserName; } lblemail.Text = account.Email; }