private void onFileListingLoaded(FileListingLoadedMessage message) { allFiles = message.Allfiles; }
private void onFileListingLoaded(FileListingLoadedMessage message) { allMods.Clear(); allMods.AddRange(message.Allfiles.SelectMany(f => f.ModdedFiles)); viewModel.Mods.ForEach(mf => mf.PropertyChanged -= onFileViewEntityChanged); viewModel.Mods.Clear(); viewModel.Mods.AddRange(mapper.Map<IEnumerable<FileViewEntity>>(allMods)); viewModel.Mods.ForEach(mf => mf.PropertyChanged += onFileViewEntityChanged); }