public void PlaySound(Sounds sound) { var fileName = FileNames.GetSoundFileName(sound); MediaPlayer player = new MediaPlayer(); player.Open(new Uri(fileName)); player.Play(); }
public void PlaySound(Sounds sound) { var fileName = FileNames.GetSoundFileName(sound); MediaPlayer player = new MediaPlayer(); player.Open(new Uri(fileName)); player.Play(); }