コード例 #1
0
        public Main(IWordBank <Question> wordBank
                    , SpeechSynthesizer speechSynthesizer)
        {
            _wordBank          = wordBank;
            _speechSynthesizer = speechSynthesizer;

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

            _wordBank.IsEmpty += OnWordBankEmpty;
        }
コード例 #2
0
ファイル: Jobs.cs プロジェクト: bill-cooper/word-scraper
 public Functions(IWordRepository wordRepository, IWordBank wordBank)
 {
     _wordRepository = wordRepository;
     _wordBank       = wordBank;
 }