private void GenresAdapterOnOnItemClick(object sender, GenresAdapterClickEventArgs e)
 {
     try
     {
         var item = GenresAdapter.GetItem(e.Position);
         if (item != null)
         {
             item.Checked = !item.Checked;
             GenresAdapter.NotifyItemChanged(e.Position);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
Exemplo n.º 2
0
        //open Songs By Genres
        private void GenresAdapterOnOnItemClick(object sender, GenresAdapterClickEventArgs e)
        {
            try
            {
                var item = GenresAdapter.GetItem(e.Position);
                if (item != null)
                {
                    Bundle bundle = new Bundle();
                    bundle.PutString("GenresId", item.Id.ToString());
                    bundle.PutString("GenresText", item.CateogryName);

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