示例#1
0
        private void FriendRequestRemove(FriendsPageViewModel sender, uint id)
        {
            var friendRequest = FriendRequestList.Children.OfType <FriendRequest>().Where(FR => FR.SenderId == id).First();

            FriendRequestList.Children.Remove(friendRequest);
            lblNumberOfRequest.Text = AppResources.txtFriendsPageRequestCheckBefore + (FriendRequestList.Children.Count() - 1).ToString() +
                                      AppResources.txtFriendsPageRequestCheckAfter;
        }
示例#2
0
        public async Task <ActionResult> Friends()
        {
            int UserID = 1;

            FriendsPageViewModel viewModel = new FriendsPageViewModel
            {
                Friends        = await coopQueue.GetUserFriend(UserID),
                PendingFriends = await coopQueue.GetPendingFriends(UserID)
            };

            return(View(viewModel));
        }
示例#3
0
 public void Include(FriendsPageViewModel vm)
 {
     var vm1 = new FriendsPageViewModel();
 }
示例#4
0
 public FriendsPage()
 {
     InitializeComponent();
     ViewModel = new FriendsPageViewModel();
 }