Esempio n. 1
0
        static void Main(string[] args)
        {
            Song song1 = new Song { Name = "For Years (Intro)", Time = "0:37" };
            Song song2 = new Song { Name = "Feel U Here", Time = "4:21" };
            Song song3 = new Song { Name = "Face The Enemy", Time = "4:14" };
            Song song4 = new Song { Name = "Rockstar DJ", Time = "3:55" };
            Song song5 = new Song { Name = "Muzik Bizz", Time = "4:16" };
            Song song6 = new Song { Name = "Musical Impressions", Time = "4:10" };
            Song song7 = new Song { Name = "Just As Easy", Time = "4:21" };
            Song song8 = new Song { Name = "We Come And We Go", Time = "3:17" };
            Song song9 = new Song { Name = "Ancient Beat", Time = "1:33" };
            Song song10 = new Song { Name = "I Love Haters", Time = "3:47" };
            Song song11 = new Song { Name = "Can't Kill Us", Time = "3:51" };
            Song song12 = new Song { Name = "Audiometric (2009 Album Mix)", Time = "3:19" };
            Song song13 = new Song { Name = "Push Play!", Time = "2:56" };
            Song song14 = new Song { Name = "About Time", Time = "3:30" };
            Song song15 = new Song { Name = "One Blade (Noisecontrollers Remix)", Time = "3:48" };
            Song song16 = new Song { Name = "Feel U Here (The Viper & G-Town Madness Remix)", Time = "6:27" };

            CD cd = new CD { Name = "Musical Impressions", Artist = "Brennan Heart" };
            cd.AddSong(song1);
            cd.AddSong(song2);
            cd.AddSong(song3);
            cd.AddSong(song4);
            cd.AddSong(song5);
            cd.AddSong(song6);
            cd.AddSong(song7);
            cd.AddSong(song8);
            cd.AddSong(song9);
            cd.AddSong(song10);
            cd.AddSong(song11);
            cd.AddSong(song12);
            cd.AddSong(song13);
            cd.AddSong(song14);
            cd.AddSong(song15);
            cd.AddSong(song16);

            Console.WriteLine(cd.ToString());
        }
Esempio n. 2
0
 public void AddSong(Song song)
 {
     Songs.Add(song);
 }