Exemplo n.º 1
0
        private void searchBtn_Click(object sender, RoutedEventArgs e)
        {
            string searcVal = searchBox.Text.ToString();

            SearchList = UserTracks_Repo.SearchTracks(App._userAuth, searcVal);
            RefreshScrollViewer(SearchList);
        }
Exemplo n.º 2
0
        private void AddTo_Click(object sender, RoutedEventArgs e)
        {
            var button = sender as Button;

            if (button != null)
            {
                int    index    = GetIndexOfTrack(button.Uid) + indexOfTrack;
                Tracks AddTrack = SearchList[index];
                UserTracks_Repo.AddTrackToFavorites(App._userAuth, AddTrack.id);
            }
        }