示例#1
0
 private void onFileListingLoaded(FileListingLoadedMessage message) {
   allFiles = message.Allfiles;
 }
示例#2
0
    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);
    }