private void ListBoxItem_Selected_7(object sender, RoutedEventArgs e) { StopAllMusic(); HardDay.Play(); BitmapImage newIm = new BitmapImage(); newIm.BeginInit(); newIm.UriSource = new Uri(@"C:\Users\admin\Desktop\VirtualOrchestra\GUI\Resources\Beatles.jpg"); newIm.EndInit(); PreviewImage.Source = newIm; ArtistName.Content = "The Beatles"; SongName.Content = "Hard Day's Night"; YearText.Content = "1964"; songFile = @"C:\Users\admin\Desktop\VirtualOrchestra\Sample MIDIs\h.mid"; songName = "The Beatles: Hard Day's Night"; }
private void HardDayLoop(object sender, RoutedEventArgs e) { HardDay.Position = TimeSpan.Zero; HardDay.Play(); }