Пример #1
0
 private void setTextBoxes(KanjiWord word)
 {
     kanjiBox.Text    = word.getKanji();
     furiganaBox.Text = word.getFurigana();
     romajiBox.Text   = word.getRomaji();
     englishBox.Text  = word.getEnglish();
 }
Пример #2
0
        public void writeWords()
        {
            StreamWriter writer = new StreamWriter(@"data\kanji.txt", false);

            for (int i = 0; i < kanji.Count; i++)
            {
                KanjiWord     word = kanji.ElementAt <KanjiWord>(i);
                StringBuilder line = new StringBuilder();
                line.Append("#k#");
                line.Append(word.getKanji());
                line.Append("#f#");
                line.Append(word.getFurigana());
                line.Append("#r#");
                line.Append(word.getRomaji());
                line.Append("#m#");
                line.Append(word.getEnglish());
                line.Append("#e#");
                writer.WriteLine(line.ToString());
            }
            writer.Close();
        }