Пример #1
0
        public override void Initialize()
        {
            IsSaved = true;

            if (_deck == null)
            {
                _deck = new Deck { Name = NewDeckName };
                SelectedCard = null;
                IsNew = true;
                return;
            }

            SelectedCard = _deck[RandomEx.Next(_deck.CardCount)];
        }
Пример #2
0
 public DeckView(Deck deck)
 {
     _deck = deck;
 }