private void ListBoxItem_Selected_11(object sender, RoutedEventArgs e) { StopAllMusic(); NewWorld.Play(); BitmapImage newIm = new BitmapImage(); newIm.BeginInit(); newIm.UriSource = new Uri(@"C:\Users\admin\Desktop\VirtualOrchestra\GUI\Resources\Dvorak.jpg"); newIm.EndInit(); PreviewImage.Source = newIm; ArtistName.Content = "Antonin Dvorak"; SongName.Content = "From the New World"; YearText.Content = "1893"; songFile = @"C:\Users\admin\Desktop\VirtualOrchestra\Sample MIDIs\newworld.mid"; songName = "Dvorak: From the New World"; }
private void NewWorldLoop(object sender, RoutedEventArgs e) { NewWorld.Position = TimeSpan.Zero; NewWorld.Play(); }