Esempio n. 1
0
 private void Media_Repeat(object sender, EventArgs e)
 {
     MenuMusic.Position = TimeSpan.Zero;
     MenuMusic.Play();
 }
Esempio n. 2
0
 /// <summary>
 /// Odtwarzanie muzyki
 /// </summary>
 private void PlayMusic()
 {
     MenuMusic.Open(new Uri(System.IO.Path.GetFullPath("../../" + "Sounds/Homelander.mp3"), UriKind.RelativeOrAbsolute));
     MenuMusic.MediaEnded += new EventHandler(Media_Repeat);
     MenuMusic.Play();
 }