Esempio n. 1
0
        private void GenerateWordbooklist()
        {
            wordbooklist = new List <string>();
            WordDataHelper.WordbookListInFolder(AppInfoHelper.GetMyWordBookFolder(), wordbooklist);
            List <string> dictlist = new List <string>();

            dictlist = DictHelper.ReadDictList();
            for (int i = 0; i < dictlist.Count; i++)
            {
                wordbooklist.Add(dictlist[i]);
            }
        }
Esempio n. 2
0
        private void AddWordList(bool model)
        {
            List <string> dict = new List <string>();

            WordDataHelper.WordbookListInFolder(AppInfoHelper.GetRecord(), dict);
            if (dict.Contains(CbxWordbook.Text))
            {
            }
            else
            {
                if (model)
                {
                    l.Clear();
                }
                l = WordDataHelper.GenerateWordbook(String.Format("{0}\\{1}.xml", AppInfoHelper.GetDictionaryFolder(), CbxWordbook.Text));
            }
        }