Example #1
0
 protected void LoadFriendRequests()
 {
     GridViewFriendsListRequest.DataSource = FriendsBLL.getAllFriendRequests(Userid, Global.PENDING);
     GridViewFriendsListRequest.DataBind();
     GridViewSuggestions.DataSource = FriendsBLL.getAllFriendRequests(Userid, Global.SUGGESTED);
     GridViewSuggestions.DataBind();
 }
Example #2
0
    protected void LoadSuggestions()
    {
        List <UserFriendsBO> list       = FriendsBLL.getAllSuggestions(userid).Take(4).ToList();
        List <UserFriendsBO> scoredlist = FriendsBLL.RecommendationScoring(list, userid);

        if (scoredlist.Count == 0)
        {
            GridViewSuggestions.DataSource = list;
        }
        else
        {
            GridViewSuggestions.DataSource = scoredlist;
        }
        GridViewSuggestions.DataBind();

        //lbtnFriends.Text = "Friends(" + FriendsBLL.countFriends(userid, Global.CONFIRMED).ToString() + ")";
        //lbtnRequest.Text = "Requests(" + FriendsBLL.countFriendRequests(userid, Global.PENDING).ToString() + ")";
    }