Ejemplo n.º 1
0
        public Main(IWordBank <Question> wordBank
                    , SpeechSynthesizer speechSynthesizer)
        {
            _wordBank          = wordBank;
            _speechSynthesizer = speechSynthesizer;

            InitializeComponent();
            DisableIfNoAudio();
            PronounceWord();
            FocusToAnswerTextBox();
            UpdateQuestionCountLabel();

            _wordBank.IsEmpty += OnWordBankEmpty;
        }
Ejemplo n.º 2
0
 public Functions(IWordRepository wordRepository, IWordBank wordBank)
 {
     _wordRepository = wordRepository;
     _wordBank       = wordBank;
 }