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; }
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)); }
public void Include(FriendsPageViewModel vm) { var vm1 = new FriendsPageViewModel(); }
public FriendsPage() { InitializeComponent(); ViewModel = new FriendsPageViewModel(); }