Пример #1
0
        public void SaveDataToFile(string rootFolder)
        {
            string cardFp = FilePaths.GetFullPath(rootFolder + FilePaths.CARDS_PATH);

            Console.WriteLine(cardFp);

            CardParser parser = new CardParser(cardFp);

            parser.CreateNewFile(cardFp, mCards);
        }
Пример #2
0
        public void LoadCardData(string rootfolder)
        {
            string cardFp = FilePaths.GetFullPath(rootfolder + FilePaths.CARDS_PATH);

            CardParser parser = new CardParser(cardFp);

            if (null == mCards)
            {
                mCards = new List<Card>();
            }

            parser.Parse(mCards);
        }