Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static CollectionInfo FromCollection(IPokemonCollection collection)
 {
     return new CollectionInfo(from folder in collection.Folders
                               select FolderInfo.FromFolder(folder));
 }