示例#1
0
 public EmployeeWraper(UserInfo userInfo)
 {
     Id          = userInfo.ID;
     DisplayName = DisplayUserSettings.GetFullUserName(userInfo);
     if (!string.IsNullOrEmpty(userInfo.Title))
     {
         Title = userInfo.Title;
     }
     AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64);
 }
        protected EmployeeWraper(UserInfo userInfo)
        {
            this.userInfo = userInfo;
            Id            = userInfo.ID;

            if (!string.IsNullOrEmpty(userInfo.Title))
            {
                Title = userInfo.Title;
            }

            AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64);
        }
示例#3
0
        ///<summary>
        ///</summary>
        ///<param name="userInfo"></param>
        protected EmployeeWraper(UserInfo userInfo)
        {
            _userInfo = userInfo;
            Id        = userInfo.ID;


            Title = userInfo.Title;
            try
            {
                AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64);
            }
            catch
            {
                //Go to hell with these
            }
        }
示例#4
0
        ///<summary>
        ///</summary>
        ///<param name="userInfo"></param>
        protected EmployeeWraper(UserInfo userInfo)
        {
            _userInfo = userInfo;
            Id        = userInfo.ID;

            if (!string.IsNullOrEmpty(userInfo.Title))
            {
                Title = userInfo.Title;
            }

            try
            {
                AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64);
            }
            catch
            {
                //Go to hell with these
            }
        }