Example #1
0
        private void loadNewQuestion()
        {
            int kanaCount = 10; //mAllKana.Count;
            mCurrentKana = mAllKana[ran.Next(kanaCount)];
            mIsAnswerRomanji = true;// ran.NextDouble() > 0.5;

            lblPrompt.Text = mIsAnswerRomanji ? mCurrentKana.Hiragana : mCurrentKana.Romaji;
            txtAnswer.Clear();
            txtAnswer.Focus();
        }
Example #2
0
        private void loadNewQuestion()
        {
            int kanaCount = 10; //mAllKana.Count;

            mCurrentKana     = mAllKana[ran.Next(kanaCount)];
            mIsAnswerRomanji = true;// ran.NextDouble() > 0.5;

            lblPrompt.Text = mIsAnswerRomanji ? mCurrentKana.Hiragana : mCurrentKana.Romaji;
            txtAnswer.Clear();
            txtAnswer.Focus();
        }
Example #3
0
 public frmMain()
 {
     mAllKana = Kana.GetAll();
     InitializeComponent();
 }