Ejemplo n.º 1
0
        private Deck ActiveOrDefaultDeck()
        {
            Guid id   = EndGame.Data.GetActiveDeckId();
            Deck deck = null;

            if (id != Guid.Empty)
            {
                deck = Decks.SingleOrDefault(d => d.Id == id);
            }
            return(deck ?? Decks.FirstOrDefault());
        }