public void SetPreviewUserOutOfSortedListByNames(string i_UserName)
 {
     try
     {
         UserAdapter userToPreview = r_FormToPopulate.LoginResult.LoggedInUser.Friends.Find(x => x.Name == i_UserName);
         if (userToPreview == null)
         {
             r_FormToPopulate.DisplayErrorDialog("Couldn't find the friend to preview his profile image");
         }
         else
         {
             m_FetcherHolder.FetchAvatarAndTitle();
         }
     }
     catch (Exception e)
     {
         r_FormToPopulate.DisplayErrorDialog(string.Format("Something went wrong calculating the influence grade grade {0} Advanced:{1}", Environment.NewLine, e.Message));
     }
 }
Пример #2
0
 public PostsDataAggregator(UserAdapter i_UserAdapter)
 {
     m_CurrentUserPostsCollection = i_UserAdapter.Posts;
 }
Пример #3
0
 public InfluenceAnalyser(UserAdapter i_User)
 {
     this.m_User = i_User;
     this.m_PostsDataAggregator = new PostsDataAggregator(this.m_User);
     this.m_UsersSortedByLikes  = this.m_PostsDataAggregator.UsersSortedByLikes;
 }
 public InfluenceAnalyserFacade(UserAdapter i_UserAdapter)
 {
     this.m_UserAdapter         = i_UserAdapter;
     this.m_InfluenceAnalyser   = new InfluenceAnalyser(this.m_UserAdapter);
     this.m_PostsDataAggregator = new PostsDataAggregator(this.m_UserAdapter);
 }
 public void DisplayPreviewProfilePicture(UserAdapter i_UserToDisplay)
 {
     r_FormToPopulate.PictureBoxUserPreview.Image = i_UserToDisplay.ImageNormal;
 }
        public PostAdapter FetchSetCurrentPostToAnalyze(string i_PostMessage, UserAdapter i_User)
        {
            PostAdapter postToReturn = i_User.Posts.Find(x => x.Message == i_PostMessage);

            return(postToReturn);
        }