private void NewQuestion()
        {
            questionCount++;
            questionStartTime = DateTime.Now;
            questionValue     = ResistorValues.GetRandom();
            List <Color> l = new List <Color>();

            l.AddRange(ResistorHelper.GetColorFromValue(questionValue, true));
            l.Add(Color.Gold);
            questionAnswer = l.ToArray();
            lblValue.Text  = ResistorHelper.ValueToExpress(questionValue);
        }
Exemple #2
0
        private void NewQuestion()
        {
            questionCount++;
            questionStartTime = DateTime.Now;
            questionAnswer    = ResistorValues.GetRandom();
            List <Color> l = new List <Color>();

            l.AddRange(ResistorHelper.GetColorFromValue(questionAnswer, true));
            l.Add(Color.Gold);
            questionValue = l.ToArray();
            resistorImage1.UpdateBand(questionValue);
            txtAnswer.Focus();
        }