예제 #1
0
    protected void OnTopSetlistsMenuChanged(object sender, EventArgs e)
    {
        clear();
        ArtistInfoObjectsOn();
        var         id    = TopSetlistsMenu.Active;
        SetlistInfo check = ParseSetlistPage(Globals.TopSetlists[id].link, Globals.TopSetlists[id].bandName);

        Globals.CurrentArtist           = ParseArtistPage(check.artistLink, check.bandName);
        Globals.CurrentArtistToursLinks = Globals.CurrentArtist.tours.Keys.ToList();
        label1.Text = Globals.CurrentArtist.bandName;
        foreach (var song in Globals.CurrentArtist.songs)
        {
            AllArtistSongsMenu.AppendText(song);
        }
        foreach (var tour in Globals.CurrentArtist.tours.Values)
        {
            ArtistToursMenu.AppendText(tour);
        }
        foreach (var album in Globals.CurrentArtist.albums)
        {
            ArtistAlbumsMenu.AppendText(album);
        }
        foreach (var song in check.songs)
        {
            SongsInSetlistMenu.AppendText(song);
        }
    }
예제 #2
0
 public void clear()
 {
     for (int i = 0; i < 200; i++)
     {
         SongsInSetlistMenu.RemoveText(0);
         AllArtistSongsMenu.RemoveText(0);
         ArtistToursMenu.RemoveText(0);
         ArtistAlbumsMenu.RemoveText(0);
     }
 }
예제 #3
0
    protected void OnFindArtisButtonClicked(object sender, EventArgs e)
    {
        ArtistInfoObjectsOn();
        label11.Visible           = true;
        ArtistTopSetlists.Visible = true;
        for (int i = 0; i < 50; i++)
        {
            ArtistTopSetlists.RemoveText(0);
        }
        clear();
        string SearchingData = entry1.Text;

        string[] SeachingTokens  = SearchingData.ToLower().Split();
        string   SearchingString = String.Join("+", SeachingTokens);

        Globals.SearchingPageInfo = ParseSearchingPage(SearchingString);
        for (int i = 0, j = Globals.SearchingPageInfo.Setlists.Count; i < j; i++)
        {
            ArtistTopSetlists.AppendText(Globals.SearchingPageInfo.Setlists.Values.ElementAt(i));
        }
        Globals.CurrentArtist           = ParseArtistPage(Globals.SearchingPageInfo.artistLink, Globals.SearchingPageInfo.bandName);
        Globals.Tours                   = new Dictionary <List <string>, string>();
        Globals.CurrentArtistToursLinks = Globals.CurrentArtist.tours.Keys.ToList();
        label1.Text = Globals.CurrentArtist.bandName;
        foreach (var song in Globals.CurrentArtist.songs)
        {
            AllArtistSongsMenu.AppendText(song);
        }
        foreach (var tour in Globals.CurrentArtist.tours.Values)
        {
            ArtistToursMenu.AppendText(tour);
        }
        foreach (var album in Globals.CurrentArtist.albums)
        {
            ArtistAlbumsMenu.AppendText(album);
        }
    }