Пример #1
0
        static void Main(string[] args)
        {
            CeeDee CD = new CeeDee();
            Track track1 = new Track { ArtistName = "Nightwish", AlbumTitle = "Endless Forms Most Beautiful", TrackTitle = "Shudder Before the Beautiful", TrackLenght = "6:29" };
            Track track2 = new Track { ArtistName = "Nightwish", AlbumTitle = "Endless Forms Most Beautiful", TrackTitle = "Weak Fantasy", TrackLenght = "5:23" };
            Track track3 = new Track { ArtistName = "Nightwish", AlbumTitle = "Endless Forms Most Beautiful", TrackTitle = "Elan", TrackLenght = "4:45" };
            Track track4 = new Track { ArtistName = "Nightwish", AlbumTitle = "Endless Forms Most Beautiful", TrackTitle = "Yours Is an Empty Hope", TrackLenght = "5:34" };
            Track track5 = new Track { ArtistName = "Nightwish", AlbumTitle = "Endless Forms Most Beautiful", TrackTitle = "Our Decades in the Sun", TrackLenght = "6:37" };

            CD.AddTrack(track1);
            CD.AddTrack(track2);
            CD.AddTrack(track3);
            CD.AddTrack(track4);
            CD.AddTrack(track5);

            CD.PrintTracks();
        }
Пример #2
0
 public void AddTrack(Track track)
 {
     tracks.Add(track);
 }