コード例 #1
0
        private void LoadFromFile()
        {
            BufferWords.Clear();
            CountLocalWords = 0;
            StreamReader stream = new StreamReader(Path);

            while (!stream.EndOfStream)
            {
                BufferWords.Add(TransleteWord.Parse(stream.ReadLine()));
                CountLocalWords++;
            }
            stream.Close();
        }
コード例 #2
0
 public void Add(String word)
 {
     this.LocalWords.Add(TransleteWord.Parse(word));
 }