Example #1
0
        /// <summary>
        /// Initialize
        /// </summary>
        private void Initialize()
        {
            dataController = new DataController();
            //Playlist = new Playlist();
            networkController = new NetworkController();
            musicPlayer       = new MusicPlayerController();

            //Make the music player play the next song automatically
            musicPlayer.MediaPlayer.Completion += (sender, args) => Next();
            //When we have error in the media player
            musicPlayer.MediaPlayer.Error += (sender, args) =>
            {
                //StartForeground("Error in media player", "");
                // t.Text = "Error in media player";
                Stop();
            };
        }