public void Populate() { List <string> names = FileSearchHelper.GetAllFiles(); foreach (string name in names) { SoundDetails sd = new SoundDetails() { FullPath = name }; _sounds.Add(sd); } }
private void Search_Click(object sender, RoutedEventArgs e) { List <string> files = FileSearchHelper.GetAllFiles(); foreach (string name in files) { SoundItemData sid = new SoundItemData(); sid.Name = Path.GetFileNameWithoutExtension(name); sid.FullPath = name; _soundHolder.Add(sid); } _soundHolder.SaveIfNeeded(); PopulateSoundItemList(); ConvertTagsToList(); }