예제 #1
0
 private void MAdapterOnOnItemClick(object sender, AlbumsAdapterClickEventArgs e)
 {
     try
     {
         var item = MAdapter.GetItem(e.Position);
         if (item != null)
         {
             var intent = new Intent(this, typeof(ImageByAlbumActivity));
             intent.PutExtra("ItemData", JsonConvert.SerializeObject(item));
             StartActivity(intent);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
예제 #2
0
        //Open profile Albums
        private void MAdapterOnOnItemClick(object sender, AlbumsAdapterClickEventArgs e)
        {
            try
            {
                var item = MAdapter.GetItem(e.Position);
                if (item != null)
                {
                    Bundle bundle = new Bundle();
                    bundle.PutString("ItemData", JsonConvert.SerializeObject(item));
                    bundle.PutString("AlbumsId", item.Id.ToString());

                    AlbumsFragment = new AlbumsFragment
                    {
                        Arguments = bundle
                    };
                    GlobalContext.FragmentBottomNavigator.DisplayFragment(AlbumsFragment);
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }