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)]; }
public DeckView(Deck deck) { _deck = deck; }