public CollectionViewModel(IPokemonCollection model) { this.Model = model; this.Folders = new ObservableCollection<FolderViewModel>( from folder in Model.Folders select new FolderViewModel(this, folder)); InitializeCommands(); CollectionChangedEventManager.AddListener(Model.Folders, this); }
public static CollectionInfo FromCollection(IPokemonCollection collection) { return new CollectionInfo(from folder in collection.Folders select FolderInfo.FromFolder(folder)); }