Example #1
0
 private void Songs(PerformListItem obj)
 {
     if (obj != null)
     {
         switch (obj.Title)
         {
         case "Favorites":
         {
             Navigation.PushAsync(new SongsView(userName));
         } break;
         }
     }
 }
Example #2
0
        private async void Search(object obj)
        {
            performList.Clear();
            IsBusy = true;
            SmuleLib.SmuleClient client = new SmuleLib.SmuleClient();
            Profile profile             = await client.GetProfileAsync(userName);

            /*ProfileListItem pli = new ProfileListItem();
             * pli.title = profile.user.handle;
             * userImage = new Uri(profile.user.pic_url);
             * userList.Add(pli);*/
            PerformListItem pfli = new PerformListItem();

            pfli.Count = profile.num_performances;
            pfli.Title = "Performances";
            performList.Add(pfli);

            pfli.Count = profile.num_favorites;
            pfli.Title = "Favorites";
            performList.Add(pfli);
            IsBusy = false;
        }