Exemple #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 OnAvatarSelected(object sender, NSIndexPathEventArgs e)
 {
     viewModel.Avatar = viewModel.Avatars [e.IndexPath.Row].Location;
     viewModel.ExecuteSaveProfileCommand();
 }
 void OnFriendSelected(object sender, NSIndexPathEventArgs e)
 {
     selectedFriend = viewModel.Friends [e.IndexPath.Row];
     PerformSegue(FriendConversationSegueId, this);
 }