コード例 #1
0
 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();
        }