Exemple #1
0
        /// <summary>
        /// Called in response to the receipt of a PlaySongMessage
        /// </summary>
        private static void PlaySong(Song songToPlay, bool dontPlay)
        {
            PlaybackManagerModel.CurrentSong = songToPlay;

            if ((PlaybackManagerModel.CurrentSong != null) && (dontPlay == false))
            {
                DataReporter?.PlayCurrentSong();
            }
            else
            {
                DataReporter?.Stop();
            }
        }