Пример #1
0
 void SongExists(Object sender, SongCheckEventArgs e)
 {
     for (int i = 0; i < Library.library.Count(); i++)
     {
         for (int j = 0; j < Library.library[i].Songs.Count(); j++)
         {
             if (e.s_SongName.ToLower() == Library.library[i].Songs[j].Name.ToLower())
             {
                 songResultBox.Items.Add("Title: " + Library.library[i].Songs[j].Name);
                 songResultBox.Items.Add("Artist: " + Library.library[i].Artist);
                 songResultBox.Items.Add("Album: " + Library.library[i].Name);
                 songResultBox.Items.Add("Genre: " + Library.library[i].Genre);
                 songResultBox.Items.Add("Length: " + Library.library[i].Songs[j].Length);
                 songResultBox.Items.Add("Track: " + Library.library[i].Songs[j].TrackNum + " of " + Library.library[i].TrackTotal);
                 songResultBox.Items.Add("Year: " + Library.library[i].Year);
             }
         }
     }
 }
Пример #2
0
 void SongDoesNotExist(Object sender, SongCheckEventArgs e)
 {
     songResultBox.Items.Clear();
 }