private void AddConcatenatedFiles(List <FileInfo> fileInfos) { if (fileInfos.Select(fi => AudioStreamFactory.IsSupportedFile(fi.FullName)).Count() == fileInfos.Count) { AudioTrack audioTrack = new AudioTrack(fileInfos.ToArray()); trackList.Add(audioTrack); } }
private void AddFile(string fileName) { if (AudioStreamFactory.IsSupportedFile(fileName)) { AudioTrack audioTrack = new AudioTrack(new FileInfo(fileName)); trackListBox.Items.Add(audioTrack); } }