Ejemplo n.º 1
0
 private void MAdapterOnItemClick(object sender, NearByAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             WoWonderTools.OpenProfile(this, item.UserId, item);
         }
     }
     catch (Exception exception)
     {
         Methods.DisplayReportResultTrack(exception);
     }
 }
Ejemplo n.º 2
0
 private void NearByAdapter_OnItemClick(object sender, NearByAdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = NearByAdapter.GetItem(position);
             if (item != null)
             {
                 Intent Int;
                 if (item.user_id != UserDetails.User_id)
                 {
                     Int = new Intent(this, typeof(User_Profile_Activity));
                     Int.PutExtra("UserId", item.user_id);
                     Int.PutExtra("UserType", "NearBy");
                     Int.PutExtra("UserItem", JsonConvert.SerializeObject(item));
                 }
                 else
                 {
                     Int = new Intent(this, typeof(MyProfile_Activity));
                     Int.PutExtra("UserId", item.user_id);
                 }
                 StartActivity(Int);
             }
         }
     }
     catch (Exception e)
     {
         Crashes.TrackError(e);
     }
 }
 private void MAdapterOnItemClick(object sender, NearByAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             WoWonderTools.OpenProfile(this, item.UserId, item);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Ejemplo n.º 4
0
 //Open profile user >> Near By
 private void NearByAdapterOnItemClick(object sender, SuggestionsAdapterClickEventArgs e)
 {
     try
     {
         if (e.Position > -1)
         {
             var item = NearByAdapter.GetItem(e.Position);
             if (item != null)
             {
                 QuickDateTools.OpenProfile(Activity, "LikeAndMoveTrending", item, e.Image);
             }
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }