private string SelectFilePath() { OpenFileDialog fbd2 = new OpenFileDialog(); fbd2.ShowDialog(); while (!InputCheck.Mp3Format(fbd2.FileName)) { System.Windows.MessageBox.Show("Please choose an mp3 file."); fbd2.ShowDialog(); } return(fbd2.FileName); }
private void btSelectMp3_Click(object sender, RoutedEventArgs e) { OpenFileDialog fbd = new OpenFileDialog(); fbd.ShowDialog(); while (!InputCheck.Mp3Format(fbd.FileName)) { System.Windows.MessageBox.Show("Please choose an mp3 file."); fbd.ShowDialog(); } tbMp3Path.Text = fbd.FileName; }