示例#1
0
        void OnRowSelected(object sender, NSIndexPathEventArgs e)
        {
            var message = viewModel.Conversations [e.IndexPath.Row];

            friendId = 0;

            if (message.Sender == Settings.MyId)
            {
                friendId = message.Recipient;
            }
            else
            {
                friendId = message.Sender;
            }

            if (friendId == 0)
            {
                return;
            }

            PerformSegue(ConverstationSegueId, this);
        }
 void OnFriendSelected(object sender, NSIndexPathEventArgs e)
 {
     selectedFriend = viewModel.Friends [e.IndexPath.Row];
     PerformSegue(FriendConversationSegueId, this);
 }
 void OnAvatarSelected(object sender, NSIndexPathEventArgs e)
 {
     viewModel.Avatar = viewModel.Avatars [e.IndexPath.Row].Location;
     viewModel.ExecuteSaveProfileCommand();
 }
示例#4
0
 void OnItemDeselected(object sender, NSIndexPathEventArgs e)
 {
     HandleSelectionDeselection(e.IndexPath);
 }