예제 #1
0
 public void AddWords(PresentTenseWordType type, IEnumerable <string> words)
 {
     if (this.words.ContainsKey(type))
     {
         var currentWords = this.words[type].ToList();
         currentWords.AddRange(words);
         this.words[type] = currentWords.AsEnumerable();
     }
     else
     {
         this.words[type] = words;
     }
 }
예제 #2
0
 public void AddWords(PresentTenseWordType type, string fileName)
 {
     AddWords(type, PresentTenseWordsLoader.LoadWords(fileName));
 }
예제 #3
0
        private void InitWordType(string name, string stackID, params string[] words)
        {
            var type = new PresentTenseWordType(name, stackID);

            AddWords(type, words);
        }
예제 #4
0
        private void InitWordType(string name, string stackID)
        {
            var type = new PresentTenseWordType(name, stackID);

            AddWords(type, type.name);
        }