Beispiel #1
0
        public void Load()
        {
            mCardCollection.Clear();

            List<string> playedCategories = new List<string>(GetPlayedCategories());

            CSVReader reader = new CSVReader("cards.csv");
            foreach (string[] row in reader.Values) {
                Card card = new Card(row[0], row[1]);
                if (playedCategories.Contains(card.Category, StringComparer.CurrentCultureIgnoreCase))
                    card.Played = true;

                mCardCollection.Add(card);
            }

            mSuperCategories = GetSuperCategories();
        }
Beispiel #2
0
 public Enumerator(CSVReader reader)
 {
     _csvReader = reader;
     Reset();
 }