private void AdapterPhotosOnItemClick(object sender, UserPhotosAdapterClickEventArgs e)
 {
     try
     {
         if (MAdapter is UserPhotosAdapter adapter)
         {
             try
             {
                 //Open View Story Or Create New Story
                 var item = adapter.GetItem(e.Position);
                 if (item != null)
                 {
                     var intent = new Intent(this, typeof(ImagePostViewerActivity));
                     intent.PutExtra("itemIndex", "00");
                     intent.PutExtra("AlbumObject", JsonConvert.SerializeObject(item)); // PostDataObject
                     StartActivity(intent);
                 }
             }
             catch (Exception exception)
             {
                 Console.WriteLine(exception);
             }
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Beispiel #2
0
        private void AdapterPhotosOnItemClick(object sender, UserPhotosAdapterClickEventArgs e)
        {
            try
            {
                switch (MAdapter)
                {
                case UserPhotosAdapter adapter:
                    try
                    {
                        //Open View Story Or Create New Story
                        var item = adapter.GetItem(e.Position);
                        if (item != null)
                        {
                            var intent = new Intent(this, typeof(ImagePostViewerActivity));
                            intent.PutExtra("itemIndex", "00");
                            intent.PutExtra("AlbumObject", JsonConvert.SerializeObject(item));     // PostDataObject
                            OverridePendingTransition(Resource.Animation.abc_popup_enter, Resource.Animation.popup_exit);
                            StartActivity(intent);
                        }
                    }
                    catch (Exception exception)
                    {
                        Methods.DisplayReportResultTrack(exception);
                    }

                    break;
                }
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }