public OneFriendRequestViewModel(FriendRequestsViewModel friendRequestsViewModel, ToxKey publicKey,
     string message)
 {
     _friendRequestsViewModel = friendRequestsViewModel;
     _publicKey = publicKey;
     Message = message;
 }
예제 #2
0
        public OneFriendRequestViewModel(IToxModel toxModel, FriendRequestsViewModel friendRequestsViewModel,
                                         ToxKey publicKey,
                                         string message)
        {
            _toxModel = toxModel;

            _friendRequestsViewModel = friendRequestsViewModel;
            _publicKey = publicKey;
            Message    = message;
        }
예제 #3
0
        public MainPageViewModel()
        {
            FriendList = new FriendListViewModel();

            FriendRequests = new FriendRequestsViewModel();
            FriendRequests.FriendRequestReceived += FriendRequestReceivedHandler;
            FriendRequests.Items.CollectionChanged += FriendRequestsCollectionChangedHandler;

            RecentMessagesGlobalViewModel.Instace.RecentMessages.CollectionChanged +=
                RecentMessagesCollectionChangedHandler;

            DecideFriendRequestsListVisibility();
            DecideRecentMessagesListVisiblity();
        }