public OneFriendRequestViewModel(FriendRequestsViewModel friendRequestsViewModel, ToxKey publicKey, string message) { _friendRequestsViewModel = friendRequestsViewModel; _publicKey = publicKey; Message = message; }
public OneFriendRequestViewModel(IToxModel toxModel, FriendRequestsViewModel friendRequestsViewModel, ToxKey publicKey, string message) { _toxModel = toxModel; _friendRequestsViewModel = friendRequestsViewModel; _publicKey = publicKey; Message = message; }
public MainPageViewModel() { FriendList = new FriendListViewModel(); FriendRequests = new FriendRequestsViewModel(); FriendRequests.FriendRequestReceived += FriendRequestReceivedHandler; FriendRequests.Items.CollectionChanged += FriendRequestsCollectionChangedHandler; RecentMessagesGlobalViewModel.Instace.RecentMessages.CollectionChanged += RecentMessagesCollectionChangedHandler; DecideFriendRequestsListVisibility(); DecideRecentMessagesListVisiblity(); }