private void Initialization() { RandomNum(); RandomSound(); Img1.Source = new BitmapImage(new Uri("/Images/" + ran1 + ".jpg", UriKind.Relative)); Img2.Source = new BitmapImage(new Uri("/Images/" + ran2 + ".jpg", UriKind.Relative)); Img3.Source = new BitmapImage(new Uri("/Images/" + ran3 + ".jpg", UriKind.Relative)); Img4.Source = new BitmapImage(new Uri("/Images/" + ran4 + ".jpg", UriKind.Relative)); GuessSound.Source = new Uri("/Sounds/" + ranSound + ".mp3", UriKind.Relative); GuessSound.Play(); }
private void Sound_Click(object sender, EventArgs e) { GuessSound.Play(); }