private void AddAudio_Click(object sender, RoutedEventArgs e) { OpenFileDialog Fdialog = new OpenFileDialog(); Fdialog.Filter = "Audio Files (*.mp3 *.wav) | *.mp3; *.wav;" + "|All Files|*.*"; if (Fdialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { audioPath = Fdialog.FileName; audioName = Path.GetFileNameWithoutExtension(Fdialog.FileName); Console.WriteLine(audioPath); Console.WriteLine(audioName); player.AddAudio(audioPath); player.Volume = 100; } }