Ejemplo n.º 1
0
        public void Open(CardSpaceCardViewModel cardSpaceCard)
        {
            var existing = Cards.FirstOrDefault(p => p.Id == cardSpaceCard.Id);

            if (existing != null)
            {
                SelectedCard = existing;
                return;
            }

            OpenImpl(cardSpaceCard);
        }
Ejemplo n.º 2
0
 void OpenImpl(CardSpaceCardViewModel cardSpaceCard)
 {
     Cards.Add(cardSpaceCard);
     SelectedCard = cardSpaceCard;
 }