Пример #1
0
 //Event #Liked Users >> Open User Profile
 private void LikedUsersAdapter_OnItemClick(object sender, LikedUsers_AdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = LikedUsersAdapter.GetItem(position);
             if (item != null)
             {
                 if (UserDetails.User_id == item.UserId)
                 {
                     var Int = new Intent(ApplicationContext, typeof(MyProfile_Activity));
                     Int.PutExtra("UserId", item.UserId);
                     StartActivity(Int);
                 }
                 else
                 {
                     var Int = new Intent(this, typeof(User_Profile_Activity));
                     Int.PutExtra("UserId", item.UserId);
                     Int.PutExtra("UserType", "LikedUsers");
                     Int.PutExtra("UserItem", JsonConvert.SerializeObject(item));
                     StartActivity(Int);
                 }
             }
         }
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
     }
 }