private void refresh_Click(object sender, RoutedEventArgs e) { animeList.clearList(); if (pathToAnimeFolder != null) { for (int i = 0; i < pathToAnimeFolder.Count(); i++) { parser.processDirectory(pathToAnimeFolder.ToArray()[i], 0, null); } } updateList(); }