Exemplo n.º 1
0
        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));
            }
        }
Exemplo n.º 2
0
 public Card(string name, Box parent)
 {
     this.Name = name;
     this._parent = parent;
     _cardList.Add(this);
 }