public BoxViewModel(Box box) { this._box = box; ChildViewModelList = new List<CardViewModel>(); List<Card> myCardList = DeviceDataService.GetMyCards(_box.Name); foreach (Card card in myCardList) { ChildViewModelList.Add(new CardViewModel(card)); } }
public Card(string name, Box parent) { this.Name = name; this._parent = parent; _cardList.Add(this); }