/// <summary> /// Private method to process the next queued music file. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void Events_MusicFinished(object sender, MusicFinishedEventArgs e) { if (MusicPlayer.IsPlaying == false) { if (CurrentMusic.QueuedMusic != null) { m_CurrentMusic = CurrentMusic.QueuedMusic; m_CurrentMusic.Play(); } } }
/// <summary> /// Process MusicFinishedEvents /// </summary> /// <param name="args">Event args</param> public virtual void Update(MusicFinishedEventArgs args) { }
private void Events_MusicFinished(object sender, MusicFinishedEventArgs e) { // Switch the music.... textDisplay.Text = SdlDotNetExamplesBrowser.StringManager.GetString( "MusicSwitched", CultureInfo.CurrentUICulture); //Console.WriteLine("Music Finished"); }