예제 #1
0
        private void generateKanjiWord()
        {
            if (debug)
            {
                Console.WriteLine("Kanji List Length: " + kanji.getLength());
            }
            int       index = numberGenerator(0, kanji.getLength());
            KanjiWord word  = kanji.getWord(index);

            japaneseText.Text = word.getKanji();
            furiganaText.Text = word.getFurigana();
            englishText.Text  = word.getEnglish();
            currentEnglish    = englishText.Text;
            currentRomaji     = word.getRomaji();
        }
예제 #2
0
        public WordsForm(Settings settings)
        {
            error    = false;
            debug    = true;
            hiragana = new Hiragana();
            katakana = new Katakana();
            kanji    = new Kanji();
            if (debug)
            {
                Console.WriteLine("Kanji List Length at initialization: " + kanji.getLength());
            }

            InitializeComponent();
            this.settings = settings;

            category1 = 45;
            category2 = 20;
            category3 = 4;
            category4 = 32;
        }