Ejemplo n.º 1
0
        static void RunMP3Chart()
        {
            MP3Chart mp3chart = new MP3Chart();

            mp3chart.ShowMusicList();
            mp3chart.GetVotes();
            mp3chart.ShowVotes();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Task 5.2
        /// </summary>
        private static void TestSongs()
        {
            MP3Chart chart = new MP3Chart();

            chart.ShowSongs();

            bool finish = false;

            while (!finish)
            {
                int songNo = chart.GetVotes();
                if (songNo == 0)
                {
                    finish = true;
                }
            }

            chart.ShowVotes();
        }
Ejemplo n.º 3
0
        ///<summary>
        /// Task 5.2. Create a list of song tracks and get vote
        /// for the favourite one.
        /// </summary>
        private static void TestMP3Chart()
        {
            MP3Chart MP3 = new MP3Chart();

            MP3.ShowSongs();

            bool finish = false;

            while (!finish)
            {
                int songNo = MP3.GetVotes();
                if (songNo == 0)
                {
                    finish = true;
                }
            }

            MP3.ShowVotes();
        }