/// <summary> /// Constructor /// </summary> /// <param name="flipcardDatabase"></param> /// <param name="deckStatus"></param> public FlipcardDeck(FlipcardDatabase flipcardDatabase, DeckStatus deckStatus) { foreach (var flipcardWord in flipcardDatabase.FlipcardsWords.Values) { Flipcards.Add(new Flipcard(flipcardWord.Words, deckStatus)); } }
/// <summary> /// Default constuctor which takes a dictonary /// </summary> /// <param name="words"></param> /// <param name="deckStatus"></param> public Flipcard(Dictionary <Language, string> words, DeckStatus deckStatus) { _words = words; _deckStatus = deckStatus; }