예제 #1
0
        public static void Main()
        {
            Artist avengedsevenfold = new Artist("Avenged Sevenfold");

            avengedsevenfold.AddToPlaylist("Nightmare");
            avengedsevenfold.AddToPlaylist("The Stage");
            avengedsevenfold.AddToPlaylist("Strength of the World");
            avengedsevenfold.AddToPlaylist("Warmness on the Soul");

            MediaPlayer player = new MediaPlayer();

            player.PlayMedia(avengedsevenfold);

            AudioBook howto = new AudioBook("A Game of Thrones", "George R.R. Martin");

            player.PlayMedia(howto);

            MovieSoundTrack starWars = new MovieSoundTrack("Star Wars");

            starWars.SelectTrack("Opening Credits Theme");
            player.PlayMedia(starWars);
        }
예제 #2
0
        public static void Main()
        {
            Artist prince = new Artist("Prince");

            prince.AddToPlaylist("Purple Rain");
            prince.AddToPlaylist("Little Red Corvette");
            prince.AddToPlaylist("Kiss");
            prince.AddToPlaylist("When Doves Cry");

            MediaPlayer player = new MediaPlayer();

            player.PlayMedia(prince);

            AudioBook howto = new AudioBook("How to Win Friends & Influence People", "Dale Carnegie");

            player.PlayMedia(howto);

            MovieSoundTrack starWars = new MovieSoundTrack("Star Wars");

            starWars.SelectTrack("Opening Credits Theme");
            player.PlayMedia(starWars);
        }