예제 #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();
 }