Пример #1
0
        private DeckCardCount AddNewDeckCardCount(long did)
        {
            Collection.Deck.Select(did, false);
            Collection.Sched.Reset();

            DeckCardCount  deckCount = new DeckCardCount();
            CardTypeCounts count     = Collection.Sched.AllCardTypeCounts();

            deckCount.Due = count.Learn + count.Review;
            deckCount.New = count.New;

            if (!Collection.Deck.HasParent(did))
            {
                AddCardsCountToTotal(count.New, deckCount.Due);
            }

            return(deckCount);
        }
Пример #2
0
        private void AddNewDeckAndCardCount(long did, string name)
        {
            DeckCardCount count = AddNewDeckCardCount(did);

            Decks.Add(new DeckInformation(name, count.New, count.Due, did, Collection.Deck.IsDyn(did)));
        }