Esempio n. 1
0
 public CategoryViewModel(Category cat)
 {
     this.category    = cat;
     this.Collections = new CardCollectionViewModel[5];
     for (int i = 0; i < 5; i++)
     {
         Collections[i] = new CardCollectionViewModel(category.Collections[i]);
     }
 }
Esempio n. 2
0
 public CategoryViewModel(String name)
 {
     this.category    = new Category(name);
     this.Collections = new CardCollectionViewModel[5];
     for (int i = 0; i < 5; i++)
     {
         Collections[i] = new CardCollectionViewModel(category.Collections[i]);
     }
 }