コード例 #1
0
        public void PickQuestion()
        {
            if (currentQuestionAndAnswer != null)
                throw new InvalidOperationException ("question is not empty, can't start new one");

            currentQuestionAndAnswer = this.randomizer.GetRandomUnsuccessItem ();

            if (currentQuestionAndAnswer == null)
                throw new InvalidOperationException ("no avalible questions for you");
        }
コード例 #2
0
 public void Clear()
 {
     currentQuestionAndAnswer = null;
 }