예제 #1
0
 private void MAdapterOnItemClick(object sender, MoviesAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             var intent = new Intent(this, typeof(VideoViewerActivity));
             intent.PutExtra("Viewer_Video", JsonConvert.SerializeObject(item));
             intent.PutExtra("VideoId", item.Id);
             StartActivity(intent);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
예제 #2
0
 private void MoviesAdapterOnItemClick(object sender, Movies_AdapterClickEventArgs adapterClickEvents)
 {
     try
     {
         var position = adapterClickEvents.Position;
         if (position >= 0)
         {
             var item = MoviesAdapter.GetItem(position);
             if (item != null)
             {
                 var Int = new Intent(this, typeof(Video_Viewer_Activity));
                 Int.PutExtra("Viewer_Video", JsonConvert.SerializeObject(item));
                 Int.PutExtra("VideoId", item.id);
                 StartActivity(Int);
             }
         }
     }
     catch (Exception e)
     {
         Crashes.TrackError(e);
     }
 }