private void MAdapterOnItemClick(object sender, MarketAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             var intent = new Intent(Context, typeof(ProductViewActivity));
             intent.PutExtra("Id", item.PostId);
             intent.PutExtra("ProductView", JsonConvert.SerializeObject(item));
             StartActivity(intent);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Example #2
0
 //Event Go to see data Product >> Open ProductView_Activity
 private void MMarketAdapter_OnItemClick(object sender, MarketAdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var Position = adapterClickEvents.Position;
         if (Position >= 0)
         {
             var item = MMarketAdapter.GetItem(Position);
             if (item != null)
             {
                 var Int = new Intent(Context, typeof(ProductView_Activity));
                 Int.PutExtra("ProductView", JsonConvert.SerializeObject(item));
                 StartActivity(Int);
             }
         }
     }
     catch (Exception e)
     {
         Crashes.TrackError(e);
     }
 }